Class NoDuplicateOperationsOrError
java.lang.Object
org.ek9lang.compiler.support.NoDuplicateOperationsOrError
- All Implemented Interfaces:
BiConsumer<IToken, IAggregateSymbol>
public final class NoDuplicateOperationsOrError
extends Object
implements BiConsumer<IToken, IAggregateSymbol>
Does a simple check (excluding any inheritance) for duplicated operations (methods, operators) on
any sort of Aggregate, i.e. classes, components, traits and just operators on records.
This is the first of such checks, in later phases inheritance of methods with invalid return types
and also unimplemented abstract methods will be checked (by other checkers).
-
Constructor Summary
ConstructorsConstructorDescriptionNoDuplicateOperationsOrError(ErrorListener errorListener) Create a new operations checker an aggregates. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IToken errorLocationToken, IAggregateSymbol aggregate) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
NoDuplicateOperationsOrError
Create a new operations checker an aggregates.
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<IToken, IAggregateSymbol>
-