From: Alan Knowles Date: Fri, 16 Jul 2010 05:16:35 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=88ba937c7fca7d3af4307e87df5ede5217422c75 JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 5ecc388..900c01d 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -877,12 +877,11 @@ ScopeParser.prototype = { token = this.ts.nextTok(); } // return function() {.... - if (token.name == "RETURN") { - token = this.ts.nextTok(); - } - if (token.name == "FUNCTION") { + while (token.name != "FUNCTION") { token = this.ts.nextTok(); } + token = this.ts.nextTok(); + //assert token.getType() == Token.LP; if (this.mode == 'BUILDING_SYMBOL_TREE') { fnScope = new Scope(1, currentScope, token.n, '', token);