Class TraitAccessibleOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.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.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionTraitAccessibleOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbolMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
TraitAccessibleOrError
TraitAccessibleOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<org.antlr.v4.runtime.Token, ISymbol>
-