Class BinaryOperationGenerator

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

abstract 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