Exemplo n.º 1
0
        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
            };
        }
Exemplo n.º 2
0
        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
            };
        }
Exemplo n.º 3
0
        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
            };
        }