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

index c260b0d..cd8471b 100644 (file)
@@ -12,7 +12,7 @@ namespace JSDOC {
        string[] idents;
        
        
-    //global : false,
+    Scope global ;
     //mode : "", //"BUILDING_SYMBOL_TREE",
     //braceNesting : 0,
     //indexedScopes : false,
@@ -23,6 +23,8 @@ namespace JSDOC {
        public ScopeParser(TokenStream ts) {
                this.ts = ts; // {TokenStream}
                this.warnings = new Gee.ArrayList<string>();
+               this.globalScope = new  Scope(-1, false, -1, '');
+               
                //this.indexedg = {};
                //this.timer = new Date() * 1;
                this.idents = { 
@@ -110,7 +112,7 @@ namespace JSDOC {
 
 
 
-    buildSymbolTree : function()
+    void buildSymbolTree()
     {
         //println("<PRE>");