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

index 6922034..7512ce4 100644 (file)
@@ -335,12 +335,9 @@ ScopeParser.prototype = {
                     
                     break;
                 
+                case "NAME.NAME":
                 
-                default: 
-                    if ((token.type != "NAME") && (token.type != "KEYW")){
-                        break;
-                    }
-                    print("DEAL WITH NAME:");
+                    //print("DEAL WITH NAME:");
                     // got identifier..
                     
                     // look for  { ** : <- indicates obj literal.. ** this could occur with numbers ..
@@ -350,7 +347,7 @@ ScopeParser.prototype = {
                         //println("<i>"+token.data+"</i>");
                         break;
                     }
-                    print("DEAL WITH obj lit:");
+                   // print("DEAL WITH obj lit:");
                     var isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
                     
                     if (isInObjectLitAr && (this.ts.lookTok(1).data == ":") && (this.ts.lookTok(-1).data == ",")) {
@@ -369,7 +366,10 @@ ScopeParser.prototype = {
                     }
                     
                     //println("<B>SID</B>");
-                   
+                default:
+                    if (token.type != 'KEYW') {
+                        break;
+                    }
                     print("Check eval:");
                 
                     symbol = token.data;