Class ReturnIsTheBody
java.lang.Object
org.ek9lang.compiler.common.ReturnIsTheBody
- All Implemented Interfaces:
Predicate<EK9Parser.OperationDetailsContext>
public final class ReturnIsTheBody
extends Object
implements Predicate<EK9Parser.OperationDetailsContext>
THE test that an operation's returning variable is initialised in its declaration (
<- rtn as Integer: 0),
which on its own is an implementation: such an operation may have no statements at all. Part of
ProcessingBodyPresent's rule; the editors that predict E07110/E07160 hold one too. Hold an instance.-
Constructor Details
-
ReturnIsTheBody
public ReturnIsTheBody()
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<EK9Parser.OperationDetailsContext>
-