JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 03:45:59 +0000 (11:45 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 03:45:59 +0000 (11:45 +0800)
JSDOC/ScopeParser.js

index 487cbe3..ee8772b 100644 (file)
@@ -209,11 +209,18 @@ ScopeParser.prototype = {
         var isInObjectLitAr;
         this.scopes.push(scope);
        
+        var scopeIndent = ''; 
+        this.scopes.forEach(function() {
+            scopeIndent += '   '; 
+        });
+        print(scopeIndent + ">> ENTER SCOPE");
+       
         
         token = this.ts.lookTok(1);
         while (token) {
           //  this.timerPrint("parseScope AFTER lookT: " + token.toString()); 
-             //print(scopeIndent + 'OBJLIT.len='+ isObjectLitAr.length + ' ' + token.toString());
+            
+            print(scopeIndent + '' + token.data);
             //this.log(token.data);
             if (token.type == 'NAME') {
             //    print('*' + token.data);
@@ -509,11 +516,11 @@ ScopeParser.prototype = {
         
         currentScope = this.scopes[this.scopes.length-1];
             
-            var scopeIndent = ''; 
-            this.scopes.forEach(function() {
-                scopeIndent += '   '; 
-            });
-         print(scopeIndent + ">> ENTER EXPRESSION");
+        var scopeIndent = ''; 
+        this.scopes.forEach(function() {
+            scopeIndent += '   '; 
+        });
+        print(scopeIndent + ">> ENTER EXPRESSION");
         while (token = this.ts.lookTok()) {