From: Alan Knowles Date: Thu, 15 Jul 2010 06:05:33 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=b985bfd32a38fbe0eba803e659ccfd8d950bf854 JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index ffd6159..43bdaf3 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -877,16 +877,17 @@ ScopeParser.prototype = { Seed.quit(); //print(token.toString()); // assert token.getType() == Token.LC; - this.braceNesting++; - - token = this.ts.nextTok(); + //this.braceNesting++; + + //token = this.ts.nextTok(); //print(token.toString()); - - + var outTS = this.ts; + this.ts = new TokenStream(token.items); this.parseScope(fnScope); + this.ts = outTS; // now pop it off the stack!!! - this.braceNesting = b4braceNesting; + //this.braceNesting = b4braceNesting; //print("ENDFN -1: " + this.ts.lookTok(-1).toString()); //print("ENDFN 0: " + this.ts.lookTok(0).toString()); //print("ENDFN 1: " + this.ts.lookTok(1).toString());