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