Class SymbolFromContextOrError

All Implemented Interfaces:
Function<org.antlr.v4.runtime.ParserRuleContext,ISymbol>

final class SymbolFromContextOrError extends TypedSymbolAccess implements Function<org.antlr.v4.runtime.ParserRuleContext,ISymbol>
Returns the appropriate symbol from the symbol and scope management component. But if it is null issues a semantic error. Not this is not looking up through scopes or anything, just looking directly as what symbol (if any) has been recorded against the context passed in.
  • Constructor Details

  • Method Details

    • apply

      public ISymbol apply(org.antlr.v4.runtime.ParserRuleContext ctx)
      Specified by:
      apply in interface Function<org.antlr.v4.runtime.ParserRuleContext,ISymbol>