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