X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=40dc9eca37974d7aac45a008e3f052dc26ab90e0;hb=e7664dc7e8cecd61b3af8c7d62e6ba2a8e04fbf0;hp=900c01da19b19a7e98f29bf3993d15c56c2c57c5;hpb=88ba937c7fca7d3af4307e87df5ede5217422c75;p=gnome.introspection-doc-generator diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 900c01d..40dc9ec 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -877,10 +877,10 @@ ScopeParser.prototype = { token = this.ts.nextTok(); } // return function() {.... - while (token.name != "FUNCTION") { + while (token.data != "(") { token = this.ts.nextTok(); } - token = this.ts.nextTok(); + //assert token.getType() == Token.LP; if (this.mode == 'BUILDING_SYMBOL_TREE') { @@ -895,7 +895,7 @@ ScopeParser.prototype = { fnScope = this.indexedScopes[token.id]; } //if (this.mode == 'BUILDING_SYMBOL_TREE') - print('FUNC-PARSE:' + JSON.stringify(token,null,4)); + // print('FUNC-PARSE:' + JSON.stringify(token,null,4)); // Parse function arguments. var args = token.items; for (var argpos =0; argpos < args.length; argpos++) {