From 7055370cb741957ca318e453b455cef760dfbf1d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Jul 2010 16:15:50 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index ada3fad..8054fb8 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -759,8 +759,8 @@ ScopeParser.prototype = { //println("EID"); 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') { -- 2.39.2