Class NoTraitByVariablesOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.NoTraitByVariablesOrError
- All Implemented Interfaces:
BiConsumer<EK9Parser.TraitsListContext, AggregateWithTraitsSymbol>
final class NoTraitByVariablesOrError
extends TypedSymbolAccess
implements BiConsumer<EK9Parser.TraitsListContext, AggregateWithTraitsSymbol>
Used where traits are implemented 'by' a variable.
But this is design to emit errors because a trait with trait 'by' {variable} is not supported.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionNoTraitByVariablesOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(EK9Parser.TraitsListContext traitsListContext, AggregateWithTraitsSymbol aggregate) 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
-
NoTraitByVariablesOrError
NoTraitByVariablesOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
public void accept(EK9Parser.TraitsListContext traitsListContext, AggregateWithTraitsSymbol aggregate) - Specified by:
acceptin interfaceBiConsumer<EK9Parser.TraitsListContext, AggregateWithTraitsSymbol>
-