Class TraitAccessibleOrError

All Implemented Interfaces:
BiConsumer<org.antlr.v4.runtime.Token,ISymbol>

class TraitAccessibleOrError extends TypedSymbolAccess implements BiConsumer<org.antlr.v4.runtime.Token,ISymbol>
Checks that a trait access like T1.xyz() - is allowed i.e. the 'T1' is a trait of the context. Otherwise, it is not allowed and an error is emitted.
  • Constructor Details

  • Method Details

    • accept

      public void accept(org.antlr.v4.runtime.Token errorLocation, ISymbol symbol)
      Specified by:
      accept in interface BiConsumer<org.antlr.v4.runtime.Token,ISymbol>