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

index d45cb66..28be76b 100644 (file)
@@ -506,17 +506,22 @@ ScopeParser.prototype = {
         var parensNesting = 0;
         var isInObjectLitAr;
         var isObjectLitAr = [ false ];
-        while (token = this.ts.lookTok()) {
-     
-
-            
-            currentScope = this.scopes[this.scopes.length-1];
+        
+        currentScope = this.scopes[this.scopes.length-1];
             
             var scopeIndent = ''; 
             this.scopes.forEach(function() {
                 scopeIndent += '   '; 
             });
+        
+        while (token = this.ts.lookTok()) {
+     
+
             
+           /*
+            // moved out of loop?
+           
+           */ 
             print(scopeIndent + 'OBJLIT.len='+ isObjectLitAr.length + ' ' + token.data);
             
             //println("<i>"+token.data+"</i>");