Class FunctionDfnGenerator

java.lang.Object
org.ek9lang.compiler.phase7.FunctionDfnGenerator
All Implemented Interfaces:
Function<EK9Parser.FunctionDeclarationContext,IRConstruct>

final class FunctionDfnGenerator extends Object implements Function<EK9Parser.FunctionDeclarationContext,IRConstruct>
Creates the appropriate IR Construct for a standalone function. Functions are generated as class-like constructs with synthetic _call methods, following the pattern of built-in generic functions like BiPredicate and Function. This allows functions to be passed as delegates and called uniformly.