JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 06:05:33 +0000 (14:05 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 06:05:33 +0000 (14:05 +0800)
JSDOC/ScopeParser.js

index ffd6159..43bdaf3 100644 (file)
@@ -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());