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. Emits a guard that throws a non-catchable org.ek9.lang::Panic when the precondition does not hold (via the shared PanicThrowInstrs), unifying `require` with constrained-type breaches. Used for production preconditions, postconditions, and invariants.