Class PreFlowOperatorToken
java.lang.Object
org.ek9lang.compiler.support.PreFlowOperatorToken
- All Implemented Interfaces:
Function<EK9Parser.PreFlowStatementContext, Optional<org.antlr.v4.runtime.Token>>
public final class PreFlowOperatorToken
extends Object
implements Function<EK9Parser.PreFlowStatementContext, Optional<org.antlr.v4.runtime.Token>>
THE operator token of a pre-flow (
<-, :=?, := ...): what PreFlowCanSkipBody
classifies, and the error location of a check on the guard itself. Empty for a null pre-flow or one that has no
operator. Read by the redundant-gate checks (E08086-E08089); never re-read a pre-flow's operator from its
declaration or assignment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.antlr.v4.runtime.Token> apply(EK9Parser.PreFlowStatementContext preFlow) The operator token of the pre-flow, if there is one.
-
Constructor Details
-
PreFlowOperatorToken
public PreFlowOperatorToken()
-
-
Method Details
-
apply
The operator token of the pre-flow, if there is one.- Specified by:
applyin interfaceFunction<EK9Parser.PreFlowStatementContext, Optional<org.antlr.v4.runtime.Token>>- Parameters:
preFlow- the pre-flow statement context (may be null)- Returns:
- the operator token, if there is one
-