JSDOC/ScopeParser.vala
authorAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:22:46 +0000 (16:22 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:22:46 +0000 (16:22 +0800)
JSDOC/ScopeParser.vala

index 724d18e..8270cf3 100644 (file)
@@ -21,7 +21,7 @@ namespace JSDOC {
     ScopeParserMode mode;
     //braceNesting : 0,
     Gee.HashMap<int,Scope> indexedScopes;
-    //munge: true,
+    bool munge =  true;
 
        
        
@@ -132,13 +132,15 @@ namespace JSDOC {
         this.indexedScopes = new Gee.HashMap<int,Scope>();
         this.indexedScopes.set(0, this.globalScope );
         
-        this.mode = 'BUILDING_SYMBOL_TREE';
+        this.mode = ScopeParserMode.BUILDING_SYMBOL_TREE;
+        
         this.parseScope(this.globalScope);
         
         //print("---------------END PASS 1 ---------------- ");
         
-    },
-    mungeSymboltree : function()
+    }
+    
+    void mungeSymboltree()
     {
 
         if (!this.munge) {