namespace JSDOC {
+ public enum ScopeParserMode {
+ BUILDING_SYMBOL_TREE,
+ PASS2_SYMBOL_TREE
+ }
+
+
public class ScopeParser : Object {
TokenStream ts;
Scope global ;
- //mode : "", //"BUILDING_SYMBOL_TREE",
+ ScopeParserMode mode;
//braceNesting : 0,
Gee.HashMap<int,Scope> indexedScopes;
- //munge: true,
+ bool munge = true;
this.globalScope = new Scope(-1, false, -1, '');
- this.indexedScopes = { 0 : this.globalScope };
+ this.indexedScopes = new Gee.HashMap<int,Scope>();
+ this.indexedScopes.set(0, this.globalScope );
+
+ this.mode = ScopeParserMode.BUILDING_SYMBOL_TREE;
- this.mode = 'BUILDING_SYMBOL_TREE';
this.parseScope(this.globalScope);
//print("---------------END PASS 1 ---------------- ");
- },
- mungeSymboltree : function()
+ }
+
+ void mungeSymboltree()
{
if (!this.munge) {
this.ts.rewind();
this.braceNesting = 0;
- this.mode = 'PASS2_SYMBOL_TREE';
+ this.mode = PASS2_SYMBOL_TREE;
//println("MUNGING?");