JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 07:34:35 +0000 (15:34 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 07:34:35 +0000 (15:34 +0800)
JSDOC/ScopeParser.js

index b66d375..6710829 100644 (file)
@@ -205,7 +205,7 @@ ScopeParser.prototype = {
         while (token) {
           //  this.timerPrint("parseScope AFTER lookT: " + token.toString()); 
              
-            print(token.type + '.' + token.name+ ":" + token.data);
+            this.debug|| print(token.type + '.' + token.name+ ":" + token.data);
             switch(token.type + '.' + token.name) {
                 case "KEYW.VAR":
                 case "KEYW.CONST": // not really relivant as it's only mozzy that does this.
@@ -213,7 +213,7 @@ ScopeParser.prototype = {
                     //this.log("parseScope GOT VAR/CONST : " + token.toString()); 
                     while (true) {
                         token = this.ts.nextTok();
-                        print( token.toString());
+                        this.debug|| print( token.toString());
                       
                         if (!token) { // can return false at EOF!
                             break;
@@ -241,7 +241,7 @@ ScopeParser.prototype = {
                         }
 
                         token = this.ts.nextTok();
-                         print(token.toString());
+                         this.debug|| print(token.toString());
                         /*
                         assert token.getType() == Token.SEMI ||
                                 token.getType() == Token.ASSIGN ||
@@ -255,7 +255,7 @@ ScopeParser.prototype = {
                             //this.logR("parseScope DONE  : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString()); 
                             
                             token = this.ts.lookTok(1);
-                            print("AFTER EXP: " + token.toString());
+                            this.debug|| print("AFTER EXP: " + token.toString());
                             if (token.data == ';') {
                                 break;
                             }