JSDOC/Walker2.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 10:46:57 +0000 (18:46 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 10:46:57 +0000 (18:46 +0800)
JSDOC/Walker2.js

index 55ae03f..a4afd6d 100644 (file)
@@ -575,7 +575,7 @@ Walker2 = XObject.define(
                         print("got for : function() {"); 
                             
                         //scopeName = this.ts.look(-3).data;
-                        this.ts.balanceN(Script.TOKlparen);
+                        this.ts.balance('(');
                         //print(token.toString())
                         token = this.ts.nextTok(); // should be {
                         //print(token.toString())
@@ -598,7 +598,7 @@ Walker2 = XObject.define(
                             (this.ts.lookTok(1).type == 'NAME') 
                         ) {
                         //scopeName = this.ts.look(-3).data;
-                        this.ts.balanceN('(');
+                        this.ts.balance('(');
                         token = this.ts.nextTok(); // should be {
                             
                         var fnScope = new Scope(this.braceNesting, scope, token.n, '');
@@ -626,7 +626,7 @@ Walker2 = XObject.define(
                          //   (this.ts.lookTok(-4).tokN == Script.TOKidentifier)
                         ) {
                         //scopeName = this.ts.look(-3).data;
-                        this.ts.balanceN('(');
+                        this.ts.balance('(');
                         token = this.ts.nextTok(); // should be {
                         var fnScope = new Scope(this.braceNesting, scope, token.n, '$private$');
                         this.indexedScopes[this.ts.cursor] = fnScope;