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

index ada3fad..8054fb8 100644 (file)
@@ -759,8 +759,8 @@ ScopeParser.prototype = {
                     
                     //println("<B>EID</B>");
                 case 'KEYW':   
-                    if (this.mode == 'BUILDING_SYMBOL_TREE') 
-                        print("EXPR-KEYW:" + JSON.stringify(token, null, 4));
+                    //if (this.mode == 'BUILDING_SYMBOL_TREE') 
+                    //    print("EXPR-KEYW:" + JSON.stringify(token, null, 4));
                     if (token.name == "FUNCTION") {
                         
                         this.parseFunctionDeclaration();
@@ -797,13 +797,13 @@ ScopeParser.prototype = {
                         break;
                     } 
                 default:
-                    if (this.mode == 'BUILDING_SYMBOL_TREE') 
-                        print("EXPR-SKIP:" + JSON.stringify(token, null, 4));
+                    //if (this.mode == 'BUILDING_SYMBOL_TREE') 
+                    //    print("EXPR-SKIP:" + JSON.stringify(token, null, 4));
                     break;
             }
             
         }
-        print("<< EXIT EXPRESSION");
+        //print("<< EXIT EXPRESSION");
         this.expN--;
     },
 
@@ -879,14 +879,14 @@ ScopeParser.prototype = {
             fnScope = this.indexedScopes[token.id];
           
         }
-        if (this.mode == 'BUILDING_SYMBOL_TREE') 
-            print('FUNC-PARSE:' + JSON.stringify(token,null,4));
+        //if (this.mode == 'BUILDING_SYMBOL_TREE') 
+        //    print('FUNC-PARSE:' + JSON.stringify(token,null,4));
         // Parse function arguments.
         var args = token.items;
         for (var argpos =0; argpos < args.length; argpos++) {
              
             token = args[argpos][0];
-            print ("FUNC ARGS: " + token.toString())
+            //print ("FUNC ARGS: " + token.toString())
             //assert token.getType() == Token.NAME ||
             //        token.getType() == Token.COMMA;
             if (token.type == 'NAME' && this.mode == 'BUILDING_SYMBOL_TREE') {