Class GuardTargetNode

java.lang.Object
org.ek9lang.compiler.support.GuardTargetNode
All Implemented Interfaces:
Function<EK9Parser.PreFlowStatementContext, Optional<org.antlr.v4.runtime.tree.ParseTree>>

public final class GuardTargetNode extends Object implements Function<EK9Parser.PreFlowStatementContext, Optional<org.antlr.v4.runtime.tree.ParseTree>>
THE node whose recorded symbol is a guard's TARGET - the variable its implicit gate set-checks: the variableDeclaration of v <- e(), or the identifier of v :=? e(). Empty when the pre-flow is not a guard (PreFlowCanSkipBody) or a :=? assigns something other than a plain identifier (this.x :=? e()). Shared by the Boolean truth guard and the redundant-gate checks (E08086-E08089).
  • Constructor Details

    • GuardTargetNode

      public GuardTargetNode()
  • Method Details