src/jsdoc/Packer.vala
authorAlan Knowles <alan@roojs.com>
Wed, 8 Jun 2016 08:25:25 +0000 (16:25 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 8 Jun 2016 08:25:25 +0000 (16:25 +0800)
src/jsdoc/Packer.vala

index 9e9a72a..98e78e6 100644 (file)
@@ -146,6 +146,8 @@ namespace JSDOC
                }
                
                
+               // this could be another class really..
+               
                public enum ResultType { err , warn  }
                /**
                *  result of complication - a JSON object containing warnings / errors etc..
@@ -190,6 +192,17 @@ namespace JSDOC
                         
                }
                
+               public bool hasErrors()
+               {
+                        if (this.result.has_member(ResultType.err.to_string())) {
+                                return true;
+                        }
+                        
+               }
+               
+               
+               
+               
                
                
                public void loadSourceIndexes(Gee.ArrayList<string> indexes)