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 Details

    • CheckForDuplicateOperationsOnGeneric

      public CheckForDuplicateOperationsOnGeneric(ErrorListener errorListener)
      Create a new operations checker for parameterised aggregates.
  • Method Details