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

index bcae93d..96cc63d 100644 (file)
@@ -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...");
                             }
                         }