Class DefaultOperatorLast
java.lang.Object
org.ek9lang.compiler.repair.DefaultOperatorLast
- All Implemented Interfaces:
TextRule
E01086 - a bare
default operator with something after it in the body. The rule fixes its place: an
aggregate's body is properties, methods, operators, then at most one bare default operator as the LAST
item (AggregateMemberOrder, checked in phase 1 and by SyntaxProbe; until 2026-10-11 the grammar
itself). Moving the line to the end of its body is therefore the only reading; what the body holds is untouched.
Measured: 5 of the 9 Q and A quads that did not parse, and 24 harness events.-
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
-
DefaultOperatorLast
DefaultOperatorLast()
-
-
Method Details