JSDOC/Scope.js
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.js
index 03291fd..3b53561 100644 (file)
@@ -245,7 +245,7 @@ ScopeParser.prototype = {
                                 token.getType() == Token.COMMA ||
                                 token.getType() == Token.IN;
                         */
-                        if (token.name == "IN")) {
+                        if (token.name == "IN") {
                             break;
                         } else {
                             this.parseExpression();
@@ -337,7 +337,7 @@ ScopeParser.prototype = {
                 
                 
                 default: 
-                    if ((token.type != "NAME") && (token.type != "KEYW"){
+                    if ((token.type != "NAME") && (token.type != "KEYW")){
                         break;
                     }
                     // got identifier..
@@ -523,7 +523,7 @@ ScopeParser.prototype = {
                     
                      
                     var isInObjectLitAr = isObjectLitAr[isObjectLitAr.length-1];
-                    if (isInObjectLitAr &&  this.ts.lookTok(1).data = ":"  &&
+                    if (isInObjectLitAr &&  this.ts.lookTok(1).data == ":"  &&
                         ( this.ts.lookTok(-1).data == "{"  ||  this.ts.lookTok(-1).data == "," )) {
                         // see if we can replace..
                         // remove the quotes..
@@ -807,4 +807,4 @@ ScopeParser.prototype = {
         }
         return false;
     }
-});
\ No newline at end of file
+};
\ No newline at end of file