JSDOC/ScopeParser.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index bdb6a4e..6922034 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,8 +361,8 @@ ScopeParser.prototype = {
                     
                     
                     // skip anyting with "." before it..!!
-                    
-                    if (this.ts.lookTok(-1).data(".")) {
+                     
+                    if (this.ts.lookTok(-1).data == ".") {
                         // skip, it's an object prop.
                         //println("<i>"+token.data+"</i>");
                         break;
@@ -368,7 +370,7 @@ ScopeParser.prototype = {
                     
                     //println("<B>SID</B>");
                    
-                
+                    print("Check eval:");
                 
                     symbol = token.data;