Example #1
0
 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);
 }
Example #2
0
 public override void ExitBlock(AdvplParser.BlockContext ctx)
 {
     currentScope = currentScope.getEnclosingScope(); // pop scope
 }