From: Alan Knowles Date: Fri, 6 Nov 2015 08:54:49 +0000 (+0800) Subject: JSDOC/ScopeParser.vala X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=607cda50bb790f8a3a73cbbb859dbee494c4301a JSDOC/ScopeParser.vala --- diff --git a/JSDOC/ScopeParser.vala b/JSDOC/ScopeParser.vala index 5d0da20..3ba1366 100644 --- a/JSDOC/ScopeParser.vala +++ b/JSDOC/ScopeParser.vala @@ -845,7 +845,7 @@ namespace JSDOC { //assert token.getType() == Token.RP; // ) } - void parseFunctionDeclaration (scope) + void parseFunctionDeclaration (Scope scope) { //print("PARSE FUNCTION"); @@ -858,7 +858,7 @@ namespace JSDOC { var token = this.ts.nextTok(); if (token.type == "NAME") { - if (this.mode == copeParserMode.BUILDING_SYMBOL_TREE) { + if (this.mode == ScopeParserMode.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) { @@ -879,8 +879,8 @@ namespace JSDOC { //assert token.getType() == Token.LP; - if (this.mode == 'BUILDING_SYMBOL_TREE') { - fnScope = new Scope(1, scope, token.n, '', token); + if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) { + var fnScope = new Scope(1, scope, token.n, '', token); //println("STORING SCOPE" + this.ts.cursor);