X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FScopeParser.js;h=a20c596678922a725ac97da0a1fcb21b52b25354;hp=79ff1039798a23902d1ebfc0e5431ca0b923d972;hb=69be0ed8cc8f94be9e19411e4821316d0b0adc92;hpb=2d54febca6b5aa46e67189c465ffbfd25a42ae45 diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 79ff103..a20c596 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -348,7 +348,7 @@ ScopeParser.prototype = { // key value.. this.ts = new TokenStream(token.props[prop].val); - this.parseScope(false); + this.parseExpression(); } this.ts = curTS; @@ -627,21 +627,24 @@ ScopeParser.prototype = { case '(': //Token.LP: case '{': //Token.LC: case '[': //Token.LB: - //print('SCOPE-CURLY/PAREN/BRACE:' + token.toString()); + print('SCOPE-CURLY/PAREN/BRACE:' + token.toString()); + // print('SCOPE-CURLY/PAREN/BRACE:' + JSON.stringify(token, null,4)); //println(""+token.data+""); var curTS = this.ts; if (token.props) { for (var prop in token.props) { - if (token.props[prop].val.data == 'function') { + 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.ts.nextTok(); + this.parseFunctionDeclaration(); continue; } // key value.. this.ts = new TokenStream(token.props[prop].val); - this.parseScope(false); + this.parseExpression(); } this.ts = curTS;