From f494700640464f3ea7e170288c7c1309a46a4403 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 6 Nov 2015 16:21:56 +0800 Subject: [PATCH] JSDOC/ScopeParser.vala --- JSDOC/ScopeParser.vala | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/JSDOC/ScopeParser.vala b/JSDOC/ScopeParser.vala index 0da866b..724d18e 100644 --- a/JSDOC/ScopeParser.vala +++ b/JSDOC/ScopeParser.vala @@ -3,6 +3,11 @@ namespace JSDOC { + public enum ScopeParserMode { + BUILDING_SYMBOL_TREE + } + + public class ScopeParser : Object { TokenStream ts; @@ -13,7 +18,7 @@ namespace JSDOC { Scope global ; - //mode : "", //"BUILDING_SYMBOL_TREE", + ScopeParserMode mode; //braceNesting : 0, Gee.HashMap indexedScopes; //munge: true, @@ -124,7 +129,8 @@ namespace JSDOC { this.globalScope = new Scope(-1, false, -1, ''); - this.indexedScopes = { 0 : this.globalScope }; + this.indexedScopes = new Gee.HashMap(); + this.indexedScopes.set(0, this.globalScope ); this.mode = 'BUILDING_SYMBOL_TREE'; this.parseScope(this.globalScope); -- 2.39.2