Package org.ek9lang.compiler.support
Class CheckForDuplicateOperationsOnGeneric
java.lang.Object
org.ek9lang.compiler.support.CheckForDuplicateOperationsOnGeneric
- All Implemented Interfaces:
BiConsumer<IToken,
IAggregateSymbol>
public final class CheckForDuplicateOperationsOnGeneric
extends Object
implements BiConsumer<IToken,IAggregateSymbol>
If the aggregate is a generic parameterised type this function triggers a check for duplicated methods.
If it is resolved and it is a parameterised type - then we must now check for duplications.
It has to be done this late in the day, because with type inference, we only know the types now
Also the generic type could have methods that work with S, T, K, V - but those now map all to
a single real concrete type the methods could be duplicate.
-
Constructor Summary
ConstructorDescriptionCheckForDuplicateOperationsOnGeneric
(ErrorListener errorListener) Create a new operations checker for parameterised 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
-
CheckForDuplicateOperationsOnGeneric
Create a new operations checker for parameterised aggregates.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<IToken,
IAggregateSymbol>
-