Class OperatorDeclarationForm

java.lang.Object
org.ek9lang.compiler.repair.OperatorDeclarationForm

final class OperatorDeclarationForm extends Object
An operator declaration written in another order than the grammar's [override|default] operator <symbol> [as] [pure] [abstract] (operatorDeclaration). Three shapes, each with one reading:
  • operator $ override as pure - the override moved to the front;
  • operator$() / operator $() - an operator is declared without parentheses;
  • default operator default operator ? - the duplicated prefix dropped.
Only a symbol the compiler's OperatorMap knows is treated as an operator.