JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 08:55:28 +0000 (16:55 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 08:55:28 +0000 (16:55 +0800)
JSDOC/ScopeParser.js

index 7127967..89ee136 100644 (file)
@@ -275,8 +275,9 @@ ScopeParser.prototype = {
                 case "PUNC.LEFT_CURLY": // {
                     //println("<i>"+token.data+"</i>");
                     isObjectLitAr.push(false);
-                    print(">>>>>> OBJLIT PUSH(false)");
                     this.braceNesting++;
+                    
+                    print(">>>>>> OBJLIT PUSH(false)" + this.braceNesting);
                     break;
 
                 case "PUNC.RIGHT_CURLY": // }
@@ -327,7 +328,7 @@ ScopeParser.prototype = {
                         // then we are in an object lit.. -> we need to flag the brace as such...
                         isObjectLitAr.pop();
                         isObjectLitAr.push(true);
-                        print(">>>>>> OBJLIT PUSH(true)");
+                        print(">>>>>> OBJLIT REPUSH(true)");
                     }
                     isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
                     
@@ -358,7 +359,7 @@ ScopeParser.prototype = {
                     if ((this.ts.lookTok(-1).data == "{") && (this.ts.lookTok(1).data == ":")) {
                         isObjectLitAr.pop();
                         isObjectLitAr.push(true);
-                        print(">>>>>> OBJLIT PUSH(true)");
+                        print(">>>>>> OBJLIT REPUSH(true)");
                         //println("<i>"+token.data+"</i>");
                         break;
                     }