JSDOC/ScopeParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 03:21:25 +0000 (11:21 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Jul 2010 03:21:25 +0000 (11:21 +0800)
JSDOC/ScopeParser.js

index 1b315b0..4b4e9e2 100644 (file)
@@ -585,7 +585,9 @@ ScopeParser.prototype = {
                 case 'NAME':
                
                     symbol = token.data;
-                  
+                    print("in NAME = " + token.toString()));
+                    print("in NAME 0: " + this.ts.look(0).toString()));
+                    print("in NAME 2: " + this.ts.lookTok(2).toString()));
                     if (this.ts.look(0).data == "{"  && this.ts.lookTok(2).data == ":") {
                         // then we are in an object lit.. -> we need to flag the brace as such...
                         isObjectLitAr.pop();
@@ -593,6 +595,7 @@ ScopeParser.prototype = {
                          //print(">>>>> EXP  PUSH(true)");
                         break;
                     }
+                    
                     isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
                     if (isInObjectLitAr && this.ts.lookTok(0).data == "," && this.ts.lookTok(2).data == ":") {
                         break;