public override void EnterBlock(Java9Parser.BlockContext context) { var e = GetScope(NearestScope(context)); var b = new Symtab.LocalScope(e); _pd.Attributes[context] = new List <CombinedScopeSymbol>() { (CombinedScopeSymbol)b }; }
public override void EnterTryWithResourcesStatement([NotNull] Java9Parser.TryWithResourcesStatementContext context) { var scope = GetScope(NearestScope(context)); var e = scope; var b = new Symtab.LocalScope(e); _pd.Attributes[context] = new List <CombinedScopeSymbol>() { b }; }
public override void EnterEnhancedForStatementNoShortIf([NotNull] Java9Parser.EnhancedForStatementNoShortIfContext context) { var scope = GetScope(NearestScope(context)); var e = scope; var b = new Symtab.LocalScope(e); _pd.Attributes[context] = new List <CombinedScopeSymbol>() { b }; }