Class BinaryOperationGenerator

java.lang.Object
org.ek9lang.compiler.phase7.generator.AbstractGenerator
org.ek9lang.compiler.phase7.generator.BinaryOperationGenerator
All Implemented Interfaces:
Function<ExprProcessingDetails, List<IRInstr>>

public final class BinaryOperationGenerator extends AbstractGenerator implements Function<ExprProcessingDetails, List<IRInstr>>
Generates IR instructions for binary operations (e.g., addition, subtraction, comparison, etc.).

Handles:
- Left and right operand evaluation with proper memory management
- Cost-based method resolution with automatic promotion
- CallInstr.operator generation for binary method calls

PHASE 7 REFACTORING: Consolidated WithProcessor variant into single class. Now accepts optional expressionProcessor for recursive expression handling.