JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 05:05:39 +0000 (13:05 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 05:05:39 +0000 (13:05 +0800)
JSDOC/ScopeParser.js

index 5662e69..b943f77 100644 (file)
@@ -528,7 +528,7 @@ ScopeParser.prototype = {
         //print("<<<<<<<EXIT SCOPE ERR?" +this.scopes.length);
     },
 
-
+    expN : 0,
     parseExpression : function() {
 
         // Parse the expression until we encounter a comma or a semi-colon
@@ -536,7 +536,7 @@ ScopeParser.prototype = {
         // Parse functions if any...
         //println("<i>EXP</i><BR/>");
         !this.debug || print("PARSE EXPR");
-       
+        this.expN++;
          
         // for printing stuff..
        
@@ -559,7 +559,7 @@ ScopeParser.prototype = {
         this.scopes.forEach(function() {
             scopeIndent += '   '; 
         });
-        print(scopeIndent + ">> ENTER EXPRESSION");
+        print(scopeIndent + ">> ENTER EXPRESSION" + this.expN);
         while (token = this.ts.lookTok()) {
      
 
@@ -590,6 +590,7 @@ ScopeParser.prototype = {
                                     bracketNesting == 0 &&
                                     parensNesting == 0) {
                                 print(scopeIndent + "<< EXIT EXPRESSION");
+                                this.expN--;
                                 return;
                             }
                             break;