JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 7d1c606..389ff9a 100644 (file)
@@ -577,9 +577,9 @@ ScopeParser.prototype = {
             
         
         //print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
-        while (token = this.ts.lookTok()) {
+        while (token = this.ts.nextTok()) {
      
-
+        
             
            /*
             // moved out of loop?
@@ -592,7 +592,7 @@ ScopeParser.prototype = {
            */ 
            
            //this.dumpToken(token,  this.scopes, this.braceNesting );
-           //print('EXP' + this.expN + ':' + token.toString());
+           print('EXP' +  token.toString());
             
             
             //println("<i>"+token.data+"</i>");
@@ -635,9 +635,9 @@ ScopeParser.prototype = {
                             var ts = this.ts;
                             var _this = this;
                             token.items.forEach(function(ns) {
-                                 print("EXPR-PUNC[:" + JSON.stringify(ns, null, 4));
+                                 print("EXPR-PUNC-MAKE:" + JSON.stringify(ns, null, 4));
                                 _this.ts = new TokenStream(ns);
-                                _this.ts.cursor--;
+                                //_this.ts.cursor--;
                                 _this.parseExpression();
                             });
                             this.ts = ts;
@@ -785,7 +785,7 @@ ScopeParser.prototype = {
                     print("EXPR-SKIP:" + JSON.stringify(token, null, 4));
                     break;
             }
-            if (!this.ts.nextTok()) break;
+            
         }
         print("<< EXIT EXPRESSION");
         this.expN--;