JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 06:36:23 +0000 (14:36 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 06:36:23 +0000 (14:36 +0800)
JSDOC/ScopeParser.js

index a69b251..69e8ee0 100644 (file)
@@ -577,7 +577,7 @@ ScopeParser.prototype = {
             
         
         //print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
-        while (token = this.ts.lookTok()) {
+        while (token = this.ts.nextTok()) {
      
         
             
@@ -785,7 +785,7 @@ ScopeParser.prototype = {
                     print("EXPR-SKIP:" + JSON.stringify(token, null, 4));
                     break;
             }
-            if (!this.ts.nextTok()) break;
+            if (!this.ts.lookTok()) break;
         }
         print("<< EXIT EXPRESSION");
         this.expN--;