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

index 9bebe00..f54497a 100644 (file)
@@ -882,9 +882,15 @@ ScopeParser.prototype = {
         //token = this.ts.nextTok();
         //print(token.toString());
         var outTS = this.ts;
-        this.ts = new TokenStream(token.items);
+        var _this = this;
+        token.items.forEach(function(tar) {
+            _this.ts = new TokenStream(tar);
+            this.parseScope(fnScope);
+            
+        }
+        
         //print(JSON.stringify(this.ts,null,4));
-        this.parseScope(fnScope);
+        //this.parseScope(fnScope);
         this.ts = outTS;
         // now pop it off the stack!!!