JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 008eca1..457107d 100644 (file)
@@ -864,7 +864,9 @@ ScopeParser.prototype = {
         if (token.name == "RETURN") {
             token =  this.ts.nextTok();
         }
-
+        if (token.name == "FUNCTION") {
+            token =  this.ts.nextTok();
+        }
         //assert token.getType() == Token.LP;
         if (this.mode == 'BUILDING_SYMBOL_TREE') {
             fnScope = new Scope(1, currentScope, token.n, '', token);
@@ -878,7 +880,7 @@ ScopeParser.prototype = {
             fnScope = this.indexedScopes[token.id];
         }
         //if (this.mode == 'BUILDING_SYMBOL_TREE') 
-            print('FUNC-PARSE:' + JSON.stringify(token,null,4));
+           // print('FUNC-PARSE:' + JSON.stringify(token,null,4));
         // Parse function arguments.
         var args = token.items;
         for (var argpos =0; argpos < args.length; argpos++) {