From 434e8f862f4f4c72e6b81516468a2d99d20a692d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 6 Nov 2015 16:29:54 +0800 Subject: [PATCH] JSDOC/ScopeParser.vala --- JSDOC/ScopeParser.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JSDOC/ScopeParser.vala b/JSDOC/ScopeParser.vala index bcae93d..96cc63d 100644 --- a/JSDOC/ScopeParser.vala +++ b/JSDOC/ScopeParser.vala @@ -261,14 +261,14 @@ namespace JSDOC { } - if (this.mode == "BUILDING_SYMBOL_TREE") { - identifier = scope.getIdentifier(token.data,token) ; + if (this.mode == ScopeParserMode.BUILDING_SYMBOL_TREE) { + var identifier = scope.getIdentifier(token.data,token) ; if (identifier == false) { scope.declareIdentifier(token.data, token); } else { token.identifier = identifier; - this.warn("(SCOPE) The variable " + token.data + ' (line:' + token.line + ") has already been declared in the same scope..."); + this.warn("(SCOPE) The variable " + token.data + " (line:" + token.line + ") has already been declared in the same scope..."); } } -- 2.39.2