JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 04:44:19 +0000 (12:44 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 04:44:19 +0000 (12:44 +0800)
JSDOC/ScopeParser.js

index bcf9525..784767e 100644 (file)
@@ -666,15 +666,15 @@ ScopeParser.prototype = {
     {
 
         var symbol;
-        var  token;
+        var token;
         var currentScope  = false; 
         var fnScope = false;
         var identifier;
         //this.logR("<B>PARSING FUNCTION</B>");
         currentScope = this.scopes[this.scopes.length-1];
 
-        token = this.ts.nextT();
-        if (token.isType('identifier')) {
+        token = this.ts.nextTok();
+        if (token.type == "NAME") {
             if (this.mode == 'BUILDING_SYMBOL_TREE') {
                 // Get the name of the function and declare it in the current scope.
                 symbol = token.data;
@@ -683,7 +683,7 @@ ScopeParser.prototype = {
                 }
                 currentScope.declareIdentifier(symbol,token);
             }
-            token =  this.ts.nextT();
+            token =  this.ts.nextTok();
         }
 
         //assert token.getType() == Token.LP;