Class ForeignLogicalOperators
java.lang.Object
org.ek9lang.compiler.repair.ForeignLogicalOperators
- All Implemented Interfaces:
TextRule
A foreign spelling (was
ForeignSyntax.logicalOperators): a && b / a || b - EK9's
a and b / a or b. Only code is rewritten (never the inside of a String or a comment - see
MaskedLiterals), and only on the line the parser stopped on. The other foreign spellings are
ForeignBlockColon, ForeignHashComment, ForeignBlockComment and ForeignGenericType.-
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
-
ForeignLogicalOperators
ForeignLogicalOperators()
-
-
Method Details