JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index c781339..602f6ed 100644 (file)
@@ -309,7 +309,9 @@ ScopeParser.prototype = {
                             break;
                         } else {
                             //var bn = this.braceNesting;
+                            var bn = this.braceNesting;
                             this.parseExpression();
+                            this.braceNesting = bn;
                             //this.braceNesting = bn;
                             //this.logR("parseScope DONE  : <B>ParseExpression</B> - tok is:" + this.ts.lookT(0).toString()); 
                             
@@ -349,6 +351,7 @@ ScopeParser.prototype = {
                         // eat symbol if we are currently at { 
                         if (this.ts.look(0).data == '{') {
                             this.ts.nextTok();
+                            
                         }
                         
                         print("<<<<<<<EXIT SCOPE" +this.scopes.length);
@@ -543,7 +546,7 @@ ScopeParser.prototype = {
         var currentScope;
         var identifier;
 
-        var expressionBraceNesting = this.braceNesting;
+        var expressionBraceNesting = this.braceNesting + 0;
         var bracketNesting = 0;
         var parensNesting = 0;
         var isInObjectLitAr;