Package org.ek9lang.compiler.support
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
ConstructorDescriptionNoDuplicateOperationsOrError
(ErrorListener errorListener) Create a new operations checker an aggregates. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IToken errorLocationToken, IAggregateSymbol aggregate) 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
-
NoDuplicateOperationsOrError
Create a new operations checker an aggregates.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<IToken,
IAggregateSymbol>
-