JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 04210e0..a69d15d 100644 (file)
@@ -330,10 +330,12 @@ ScopeParser.prototype = {
                         
                         for (var prop in token.props) {
                             
-                            // print('SCOPE-PROPS:' + JSON.stringify(token.props[prop],null,4));
+                            
+                          //  print('SCOPE-PROPS:' + JSON.stringify(token.props[prop],null,4));
                             if (token.props[prop].val[0].data == 'function') {
                                 // parse a function..
                                 this.ts = new TokenStream(token.props[prop].val);
+                                this.ts.nextTok();
                                 this.parseFunctionDeclaration();
                                 
                                 continue;
@@ -905,7 +907,7 @@ ScopeParser.prototype = {
         for (var argpos =0; argpos < args.length; argpos++) {
              
             token = args[argpos][0];
-           // 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') {
@@ -915,7 +917,7 @@ ScopeParser.prototype = {
                     // Exception for Prototype 1.6...
                     identifier.preventMunging();
                 }
-                argpos++;
+                //argpos++;
             }
         }