From: Alan Knowles Date: Thu, 15 Jul 2010 06:46:31 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=cc9bb0968a03501441c1077480697a7ec3d2c909 JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 77dd6f7..ea9a3f5 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -323,9 +323,9 @@ ScopeParser.prototype = { case "PUNC.LEFT_CURLY": // { //println(""+token.data+""); - + var curTS = this.ts; if (token.props) { - var curTS = this.ts; + for (var prop in token.props) { if (token.props[prop].val.data == 'function') { // parse a function.. @@ -342,13 +342,20 @@ ScopeParser.prototype = { // it's an object literal.. // the values could be replaced.. - + break; } - print('SCOPE-CURLY:' + JSON.stringify(token,null,4)); - print("NOT PROPS"); Seed.quit(); - isObjectLitAr.push(false); - this.braceNesting++; + print('SCOPE-CURLY:' + JSON.stringify(token,null,4)); + var _this = this; + token.items.forEach(function(expr) { + _this.ts = new TokenStream(expr); + _this.parseExpression(scope) + }); + this.ts = curTS; + //print("NOT PROPS"); Seed.quit(); + + //isObjectLitAr.push(false); + //this.braceNesting++; //print(">>>>>> OBJLIT PUSH(false)" + this.braceNesting); break;