From: Alan Knowles Date: Thu, 15 Jul 2010 08:31:40 +0000 (+0800) Subject: JSDOC/ScopeParser.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=58a1e9d6078da0a15d038c662d90ab0f6bb9b4e5 JSDOC/ScopeParser.js --- diff --git a/JSDOC/ScopeParser.js b/JSDOC/ScopeParser.js index 45943b4..74d0549 100644 --- a/JSDOC/ScopeParser.js +++ b/JSDOC/ScopeParser.js @@ -224,7 +224,7 @@ ScopeParser.prototype = { var isObjectLitAr = [ false ]; var isInObjectLitAr; thisScope = scope; - if (thisScope) { + if (thisScope && thisScope.gid != this.scopes[this.scopes.length-1]) { this.scopes.push(scope); } else { thisScope = this.scopes[this.scopes.length-1] @@ -905,6 +905,7 @@ ScopeParser.prototype = { _this.ts = new TokenStream(tar); _this.parseScope(fnScope); + }); //print(JSON.stringify(this.ts,null,4));