JSDOC/Walker2.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 09:20:50 +0000 (17:20 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 09:20:50 +0000 (17:20 +0800)
JSDOC/Walker2.js

index fd7f7b3..f3ec816 100644 (file)
@@ -664,14 +664,15 @@ Walker2 = XObject.define(
                             scopeName = fixAlias(scopeName);
                             
                             print(this.scopes.length);
-                            //var fnScope = new Scope(this.braceNesting, scope, token.n, 
-                            //    '$this$='+scopeName + '|'+scopeName
-                            //);
+                            var fnScope = new Scope(this.braceNesting, scope, token.n, 
+                                '$this$='+scopeName + '|'+scopeName
+                            );
                             
-                            //this.indexedScopes[this.ts.cursor] = fnScope;
-                            //scope = fnScope;
+                            this.indexedScopes[this.ts.cursor] = fnScope;
+                            scope = fnScope;
                             // push the same scope onto the stack..
-                            this.scopesIn(this.scopes[this.scopes.length-1]);
+                            this.scopesIn(fnScope);
+                            //this.scopesIn(this.scopes[this.scopes.length-1]);
                             
                               
                             locBraceNest++;