From: Alan Knowles Date: Thu, 15 Jul 2010 05:56:55 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=f6bfddfb14d7433745bb7d5026dc0d532625538f JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index b527a15..0a7eeed 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -325,6 +325,20 @@ ScopeParser.prototype = { //println(""+token.data+""); if (token.props) { + for (var prop in token.props) { + if (token.props[prop].val.data == 'function') { + // parse a function.. + this.parseFunctProp(token.props[prop]); + continue; + } + // key value.. + var curTS = this.ts; + this.ts = new TokenStream(token.props[prop].val); + this.parseScope(scope); + this.ts = curTS; + + } + // it's an object literal.. // the values could be replaced..