JSDOC/ScopeParser.vala
[gnome.introspection-doc-generator] / JSDOC / ScopeParser.vala
index 1d7372f..759df16 100644 (file)
@@ -810,19 +810,15 @@ namespace JSDOC {
            }
            //print("<< EXIT EXPRESSION");
            this.expN--;
-       },
+       }
 
 
-       parseCatch : function(scope) {
+       void parseCatch(scope) {
 
-           var symbol;
-           var token;
-            
-           var identifier;
            
            //token = getToken(-1);
            //assert token.getType() == Token.CATCH;
-           token = this.ts.nextTok(1);
+           var token = this.ts.nextTok(1);
            token = this.ts.nextTok(1);
            
            
@@ -831,23 +827,23 @@ namespace JSDOC {
            //token = this.ts.nextTok();
            //assert token.getType() == Token.NAME;
            
-           symbol = token.items[0][0].data;
+           var symbol = token.items[0][0].data;
            
 
-           if (this.mode == 'BUILDING_SYMBOL_TREE') {
+           if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) {
                // We must declare the exception identifier in the containing function
                // scope to avoid errors related to the obfuscation process. No need to
                // display a warning if the symbol was already declared here...
                scope.declareIdentifier(symbol, token.items[0][0]);
            } else {
                //?? why inc the refcount?? - that should be set when building the tree???
-               identifier = this.getIdentifier(symbol, scope, token.items[0][0]);
+               var identifier = this.getIdentifier(symbol, scope, token.items[0][0]);
                identifier.refcount++;
            }
            
            //token = this.ts.nextTok();
            //assert token.getType() == Token.RP; // )
-       },
+       }
        
        parseFunctionDeclaration : function(scope) 
        {