JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 16 Jul 2010 04:47:31 +0000 (12:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 16 Jul 2010 04:47:31 +0000 (12:47 +0800)
JSDOC/ScopeParser.js

index 008eca1..a4944d6 100644 (file)
@@ -864,7 +864,9 @@ ScopeParser.prototype = {
         if (token.name == "RETURN") {
             token =  this.ts.nextTok();
         }
         if (token.name == "RETURN") {
             token =  this.ts.nextTok();
         }
-
+        if (token.name == "FUNCTION") {
+            token =  this.ts.nextTok();
+        }
         //assert token.getType() == Token.LP;
         if (this.mode == 'BUILDING_SYMBOL_TREE') {
             fnScope = new Scope(1, currentScope, token.n, '', token);
         //assert token.getType() == Token.LP;
         if (this.mode == 'BUILDING_SYMBOL_TREE') {
             fnScope = new Scope(1, currentScope, token.n, '', token);