Class GuardSkipsWholeSwitchOrTry

java.lang.Object
org.ek9lang.compiler.support.GuardSkipsWholeSwitchOrTry
All Implemented Interfaces:
Predicate<EK9Parser.PreFlowStatementContext>

public final class GuardSkipsWholeSwitchOrTry extends Object implements Predicate<EK9Parser.PreFlowStatementContext>
THE test of a guard (PreFlowCanSkipBody) whose skipping skips a WHOLE switch or try - its other cases, default, catch and finally too (D40) - so an analysis records the state there as a skip path and joins it back after the construct. An if's guard is not one: only its own block is skipped and the alternatives still run.
  • Constructor Details

    • GuardSkipsWholeSwitchOrTry

      public GuardSkipsWholeSwitchOrTry()
  • Method Details