Class FunctionCallProcessor
java.lang.Object
org.ek9lang.compiler.phase7.generator.FunctionCallProcessor
- All Implemented Interfaces:
Function<CallProcessingDetails,
List<IRInstr>>
public final class FunctionCallProcessor
extends Object
implements Function<CallProcessingDetails,List<IRInstr>>
Unified function call processor using CallDetailsBuilder for method resolution and promotion.
Handles both statement and expression contexts with appropriate memory management.
This component replaces the duplicate function call logic in CallInstrGenerator and ExprInstrGenerator, providing consistent method resolution and automatic promotion across all function call contexts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(CallProcessingDetails details) apply
(CallProcessingDetails details, Function<ExprProcessingDetails, List<IRInstr>> exprProcessor) Apply function call processing with an expression processor function.
-
Constructor Details
-
FunctionCallProcessor
-
-
Method Details
-
apply
public List<IRInstr> apply(CallProcessingDetails details, Function<ExprProcessingDetails, List<IRInstr>> exprProcessor) Apply function call processing with an expression processor function. This avoids circular dependencies by accepting the expression processor as a parameter. -
apply
- Specified by:
apply
in interfaceFunction<CallProcessingDetails,
List<IRInstr>>
-