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

index 784767e..bee211f 100644 (file)
@@ -701,12 +701,12 @@ ScopeParser.prototype = {
         
         // Parse function arguments.
         var argpos = 0;
-        while (!this.ts.look().isType('rparen')) { //(token = consumeToken()).getType() != Token.RP) {
-            token = this.ts.nextT();
+        while (!this.ts.look().data == ')') { //(token = consumeToken()).getType() != Token.RP) {
+            token = this.ts.nextTok();
            
             //assert token.getType() == Token.NAME ||
             //        token.getType() == Token.COMMA;
-            if (token.isType('identifier') && this.mode == 'BUILDING_SYMBOL_TREE') {
+            if (token.type == 'NAME' && this.mode == 'BUILDING_SYMBOL_TREE') {
                 symbol = token.data;
                 identifier = fnScope.declareIdentifier(symbol,token);
                 if (symbol == "$super" && argpos == 0) {
@@ -717,12 +717,12 @@ ScopeParser.prototype = {
             }
         }
 
-        token = this.ts.nextT();
+        token = this.ts.nextTok();
         // assert token.getType() == Token.LC;
         this.braceNesting++;
 
-        token = this.ts.nextT();
-        if (token.isType('string') && this.ts.look(1).isType('semicolon')) {
+        token = this.ts.nextTok();
+        if (token.type == "STRN" && this.ts.look(1).data == ';') {
             /*
             
             NOT SUPPORTED YET!?!!?!