From b985bfd32a38fbe0eba803e659ccfd8d950bf854 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Jul 2010 14:05:33 +0800 Subject: [PATCH] JSDOC/ScopeParser.js --- JSDOC/ScopeParser.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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()); -- 2.39.2