Class CheckAndPopulateOperator

java.lang.Object
org.ek9lang.compiler.support.CheckAndPopulateOperator
All Implemented Interfaces:
BiFunction<EK9Parser.OperatorDeclarationContext,IAggregateSymbol,MethodSymbol>

class CheckAndPopulateOperator extends Object implements BiFunction<EK9Parser.OperatorDeclarationContext,IAggregateSymbol,MethodSymbol>
Deals with normal operators (i.e. fully defined) and also 'default' operators. The use of 'default' maybe inappropriate by the EK9 developer this code will check for that and issue errors as appropriate.
Note, we allow duplicate operators to be defined, but later phase will detect those.