JSDOC/ScopeParser.vala
authorAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:54:23 +0000 (16:54 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 6 Nov 2015 08:54:23 +0000 (16:54 +0800)
JSDOC/ScopeParser.vala

index 759df16..5d0da20 100644 (file)
@@ -845,22 +845,20 @@ namespace JSDOC {
            //assert token.getType() == Token.RP; // )
        }
        
-       parseFunctionDeclaration : function(scope) 
+       void parseFunctionDeclaration (scope) 
        {
            //print("PARSE FUNCTION");
-           var symbol;
-           var token;
            
            var fnScope = false;
-           var identifier;
+           
            var b4braceNesting = this.braceNesting + 0;
            
            //this.logR("<B>PARSING FUNCTION</B>");
            
 
-           token = this.ts.nextTok();
+           var token = this.ts.nextTok();
            if (token.type == "NAME") {
-               if (this.mode == 'BUILDING_SYMBOL_TREE') {
+               if (this.mode == copeParserMode.BUILDING_SYMBOL_TREE) {
                    // Get the name of the function and declare it in the current scope.
                    symbol = token.data;
                    if (scope.getIdentifier(symbol,token) != false) {