Class VariableOnlyDeclInstrGenerator

All Implemented Interfaces:
Function<EK9Parser.VariableOnlyDeclarationContext, List<IRInstr>>

public final class VariableOnlyDeclInstrGenerator extends AbstractVariableDeclGenerator implements Function<EK9Parser.VariableOnlyDeclarationContext, List<IRInstr>>
Creates IR instructions for variable only declarations. Uses REFERENCE instructions for all variables - backend handles storage allocation. Also handles injection-marked variables (the ! suffix) by generating LOAD_STATIC_FIELD from the global _Application static struct (root-level singleton).

STACK-BASED: Now uses IRGenerationContext for scope management instead of parameter threading.