X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=333a7f78f2b894df4cc32a47b9dc336cc0e9bc40;hb=fbd039402e2ec47410eb1e2cb388b9d8321d30f6;hp=538957c987ae7a53f1461018a94016d7b1e988e6;hpb=f04ff0bcf89e08e647194346caec8e9d213145d6;p=gnome.introspection-doc-generator diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 538957c..333a7f7 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -456,7 +456,7 @@ ScopeParser.prototype = { break; case "NAME.NAME": - print('SCOPE-NAME:' + token.toString()); + //print('SCOPE-NAME:' + token.toString()); //print("DEAL WITH NAME:"); // got identifier.. @@ -616,19 +616,19 @@ ScopeParser.prototype = { */ //this.dumpToken(token, this.scopes, this.braceNesting ); - print('EXP' + token.toString()); + //print('EXP' + token.toString()); //println(""+token.data+""); //this.log("EXP:" + token.data); switch (token.type) { case 'PUNC': - print("EXPR-PUNC:" + token.toString()); + //print("EXPR-PUNC:" + token.toString()); switch(token.data) { case ';': - print("<< EXIT EXPRESSION"); + //print("<< EXIT EXPRESSION"); break; case ',': @@ -639,7 +639,7 @@ ScopeParser.prototype = { case '(': //Token.LP: case '{': //Token.LC: case '[': //Token.LB: - print('SCOPE-CURLY/PAREN/BRACE:' + token.toString()); + //print('SCOPE-CURLY/PAREN/BRACE:' + token.toString()); //println(""+token.data+""); var curTS = this.ts; if (token.props) { @@ -683,7 +683,7 @@ ScopeParser.prototype = { case ')': //Token.RP: case ']': //Token.RB: case '}': //Token.RB: - print("<< EXIT EXPRESSION"); + //print("<< EXIT EXPRESSION"); return; @@ -697,8 +697,8 @@ ScopeParser.prototype = { break; case 'STRN': // used for object lit detection.. - if (this.mode == 'BUILDING_SYMBOL_TREE') - print("EXPR-STR:" + JSON.stringify(token, null, 4)); + //if (this.mode == 'BUILDING_SYMBOL_TREE') + //print("EXPR-STR:" + JSON.stringify(token, null, 4)); break; @@ -708,9 +708,9 @@ ScopeParser.prototype = { case 'NAME': if (this.mode == 'BUILDING_SYMBOL_TREE') { - print("EXPR-NAME:" + JSON.stringify(token, null, 4)); + //print("EXPR-NAME:" + JSON.stringify(token, null, 4)); } else { - print("EXPR-NAME:" + token.toString()); + //print("EXPR-NAME:" + token.toString()); } symbol = token.data; //print("in NAME = " + token.toString()); @@ -738,8 +738,8 @@ ScopeParser.prototype = { // any conflict with other munged symbols. this.globalScope.declareIdentifier(symbol, token); this.warn("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')', true); - print("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')'); - throw "OOPS"; + //print("Found an undeclared symbol: " + symbol + ' (line:' + token.line + ')'); + //throw "OOPS"; } else { print("undeclared:" + token.toString()) } @@ -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') {