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.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionDfnGenerator
(ParsedModule parsedModule, CompilerFlags compilerFlags) -
Method Summary
-
Constructor Details
-
FunctionDfnGenerator
FunctionDfnGenerator(ParsedModule parsedModule, CompilerFlags compilerFlags)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<EK9Parser.FunctionDeclarationContext,
IRConstruct>
-