JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 127a1a9..eeb6c48 100644 (file)
@@ -227,7 +227,7 @@ ScopeParser.prototype = {
         if (thisScope) {
             this.scopes.push(scope);
         } else {
-            thisScope = this.scopes[scopes.length-1]
+            thisScope = this.scopes[this.scopes.length-1]
         }
        
         //var scopeIndent = ''; 
@@ -706,8 +706,12 @@ ScopeParser.prototype = {
                       
              
                 case 'NAME':
-                    if (this.mode == 'BUILDING_SYMBOL_TREE') 
+                    if (this.mode == 'BUILDING_SYMBOL_TREE') {
+                        
                         print("EXPR-NAME:" + JSON.stringify(token, null, 4));
+                    } else {
+                        print("EXPR-NAME:" + token.toString());
+                       }
                     symbol = token.data;
                     //print("in NAME = " + token.toString());
                     //print("in NAME 0: " + this.ts.look(0).toString());