JSDOC/ScopeParser.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 06:46:41 +0000 (14:46 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 06:46:41 +0000 (14:46 +0800)
JSDOC/ScopeParser.js

index bdb6a4e..9ba8c6d 100644 (file)
@@ -340,6 +340,7 @@ ScopeParser.prototype = {
                     if ((token.type != "NAME") && (token.type != "KEYW")){
                         break;
                     }
+                    print("DEAL WITH NAME:");
                     // got identifier..
                     
                     // look for  { ** : <- indicates obj literal.. ** this could occur with numbers ..
@@ -349,6 +350,7 @@ ScopeParser.prototype = {
                         //println("<i>"+token.data+"</i>");
                         break;
                     }
+                    print("DEAL WITH obj lit:");
                     var isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
                     
                     if (isInObjectLitAr && (this.ts.lookTok(1).data == ":") && (this.ts.lookTok(-1).data == ",")) {
@@ -359,7 +361,7 @@ ScopeParser.prototype = {
                     
                     
                     // skip anyting with "." before it..!!
-                    
+                    print("check dot:");
                     if (this.ts.lookTok(-1).data(".")) {
                         // skip, it's an object prop.
                         //println("<i>"+token.data+"</i>");
@@ -368,7 +370,7 @@ ScopeParser.prototype = {
                     
                     //println("<B>SID</B>");
                    
-                
+                    print("Check eval:");
                 
                     symbol = token.data;