Class DirectiveAfterDeclaration
java.lang.Object
org.ek9lang.compiler.repair.DirectiveAfterDeclaration
- All Implemented Interfaces:
TextRule
Main() @Test - an annotation written after the declaration it marks, Java-and-Kotlin style. In EK9 a
directive (@Test, @Test: group) is a line of its own BEFORE the declaration, at the same indent
(directive? methodDeclaration in the grammar), so moving it to the line above is the only reading. A
directive followed by anything else (a requirement String, @Test "REQ:x") is left alone.-
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
-
DirectiveAfterDeclaration
DirectiveAfterDeclaration()
-
-
Method Details