Class OperatorDeclarationForm
java.lang.Object
org.ek9lang.compiler.repair.OperatorDeclarationForm
- All Implemented Interfaces:
TextRule
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- theoverridemoved to the front;operator$()/operator $()- an operator is declared without parentheses;default operator default operator ?- the duplicated prefix dropped.
OperatorMap knows is treated as an operator.-
Nested Class Summary
Nested classes/interfaces inherited from interface TextRule
TextRule.Rewrite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(List<String> lines, SyntaxProbe.SyntaxError failure) The rewrite oflinesansweringfailure, or null.
-
Constructor Details
-
OperatorDeclarationForm
OperatorDeclarationForm()
-
-
Method Details