JSDOC/CompressWhite.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index eb04b0b..717bbf5 100644 (file)
@@ -163,7 +163,7 @@ ScopeParser.prototype = {
         this.ts.rewind();
         this.braceNesting = 0;
         this.scopes= [];
-        this.mode = 'MUNGING_SYMBOL_TREE';
+        this.mode = 'PASS2_SYMBOL_TREE';
         
         //println("MUNGING?");
         
@@ -369,11 +369,11 @@ ScopeParser.prototype = {
                         break;
                     }
                     symbol = token.data;
-                    if (this.mode == 'MUNGING_SYMBOL_TREE') {
+                    if (this.mode == 'PASS2_SYMBOL_TREE') {
                         
                         //println("GOT IDENT: -2 : " + this.ts.lookT(-2).toString() + " <BR> ..... -1 :  " +  this.ts.lookT(-1).toString() + " <BR> "); 
                         
-                        print ("MUNGE?" + symbol);
+                        //print ("MUNGE?" + symbol);
                         
                         //println("GOT IDENT: <B>" + symbol + "</B><BR/>");
                              
@@ -569,7 +569,7 @@ ScopeParser.prototype = {
                         break;
                     }
                     
-                     if (this.mode == 'MUNGING_SYMBOL_TREE') {
+                     if (this.mode == 'PASS2_SYMBOL_TREE') {
 
                         identifier = this.getIdentifier(symbol, currentScope);
                         //println("<B>??</B>");
@@ -678,7 +678,7 @@ ScopeParser.prototype = {
     
     parseFunctionDeclaration : 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())
             //assert token.getType() == Token.NAME ||
             //        token.getType() == Token.COMMA;
             if (token.type == 'NAME' && this.mode == 'BUILDING_SYMBOL_TREE') {