From 0d4b43a80cecb48eb6f99026f5debf2779b92622 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 6 Nov 2015 16:54:23 +0800 Subject: [PATCH] JSDOC/ScopeParser.vala --- JSDOC/ScopeParser.vala | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/JSDOC/ScopeParser.vala b/JSDOC/ScopeParser.vala index 759df16..5d0da20 100644 --- a/JSDOC/ScopeParser.vala +++ b/JSDOC/ScopeParser.vala @@ -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("PARSING FUNCTION"); - 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) { -- 2.39.2