Class ForeignBlockColon
java.lang.Object
org.ek9lang.compiler.repair.ForeignBlockColon
- All Implemented Interfaces:
TextRule
A foreign spelling (was
ForeignSyntax.trailingColon): a trailing : on a control line
(if x:, else:, while x:) - Python's block colon; EK9 blocks are opened by indentation alone.
Only on the line the parser stopped on, and never a colon inside a literal or a comment (MaskedLiterals).-
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
-
ForeignBlockColon
ForeignBlockColon()
-
-
Method Details