public override void EnterBlock(AdvplParser.BlockContext ctx) { // Cria um novo escopo currentScope = new LocalScope(currentScope); saveScope(ctx, currentScope); allScopes.Add(currentScope); treesByScopes.Add(currentScope, ctx); }
public override void ExitBlock(AdvplParser.BlockContext ctx) { currentScope = currentScope.getEnclosingScope(); // pop scope }