JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 99b31a3..3ca7931 100644 (file)
@@ -330,10 +330,12 @@ ScopeParser.prototype = {
                         
                         for (var prop in token.props) {
                             
-                             print('SCOPE-PROPS:' + JSON.stringify(token.props[prop],null,4));
-                            if (token.props[prop].val.data == 'function') {
+                            print('SCOPE-PROPS:' + JSON.stringify(token.props[prop],null,4));
+                            if (token.props[prop].val[0].data == 'function') {
                                 // parse a function..
-                                this.parseFunctProp(token.props[prop]);
+                                this.ts = new TokenStream(token.props[prop].val);
+                                this.parseFunctionDeclaration();
+                                
                                 continue;
                             }
                             // key value..