JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 08:11:21 +0000 (16:11 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 08:11:21 +0000 (16:11 +0800)
JSDOC/ScopeParser.js

index ead73bc..1ca3839 100644 (file)
@@ -872,11 +872,11 @@ ScopeParser.prototype = {
             
             //println("STORING SCOPE" + this.ts.cursor);
             
-            this.indexedScopes[this.ts.cursor] = fnScope;
+            this.indexedScopes[token.id] = fnScope;
             
         } else {
             //qln("FETCHING SCOPE" + this.ts.cursor);
-            fnScope = this.indexedScopes[this.ts.cursor];
+            fnScope = this.indexedScopes[token.id];
           
         }
         if (this.mode == 'BUILDING_SYMBOL_TREE')