JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 07:54:28 +0000 (15:54 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 07:54:28 +0000 (15:54 +0800)
JSDOC/ScopeParser.js

index b443cb4..717bbf5 100644 (file)
@@ -678,7 +678,7 @@ ScopeParser.prototype = {
     
     parseFunctionDeclaration : function() 
     {
-        print("PARSE FUNCTION");
+       // print("PARSE FUNCTION");
         var symbol;
         var token;
         var currentScope  = false; 
@@ -715,9 +715,9 @@ ScopeParser.prototype = {
         
         // Parse function arguments.
         var argpos = 0;
-        while (!this.ts.lookTok().data == ')') { //(token = consumeToken()).getType() != Token.RP) {
+        while (this.ts.lookTok().data != ')') { //(token = consumeToken()).getType() != Token.RP) {
             token = this.ts.nextTok();
-            print ("FUNC ARGS: " + token.toString())
+           // print ("FUNC ARGS: " + token.toString())
             //assert token.getType() == Token.NAME ||
             //        token.getType() == Token.COMMA;
             if (token.type == 'NAME' && this.mode == 'BUILDING_SYMBOL_TREE') {