Package org.ek9lang.compiler.phase3
Class DefaultOperatorsOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.DefaultOperatorsOrError
- All Implemented Interfaces:
Consumer<AggregateSymbol>
Checks that operators that have been 'defaulted' could actually be implemented.
This is done by checking if any super has a suitable or compatible operators and also that
any properties/fields also have a suitable operator.
All the equality checks really depend on a comparator (<=>) operator. These are the operators that can be defaulted.
All the equality checks really depend on a comparator (<=>) operator. These are the operators that can be defaulted.
"<", "<=", ">", ">=", "==", "<>": "<=>": "?": "$": "$$": "#?":
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionDefaultOperatorsOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
DefaultOperatorsOrError
DefaultOperatorsOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<AggregateSymbol>
-