Class RequireStmtGenerator

java.lang.Object
org.ek9lang.compiler.phase7.generator.AbstractGenerator
org.ek9lang.compiler.phase7.generator.RequireStmtGenerator
All Implemented Interfaces:
Function<EK9Parser.RequireStatementContext, List<IRInstr>>

public final class RequireStmtGenerator extends AbstractGenerator implements Function<EK9Parser.RequireStatementContext, List<IRInstr>>
IR Generation for the require statement. Generates REQUIRE opcode which throws non-catchable AssertionError on failure. Used for production preconditions, postconditions, and invariants.