op_overload

Operator overload. Check for operator overload, if so, replace with function call.

op_overload
(,,
EXP* pop = null
)

Parameters

e Expression

expression with operator

sc Scope*

context

pop EXP*

if not null, is set to the operator that was actually overloaded, which may not be e.op. Happens when operands are reversed to match an overload

Return Value

null if not an operator overload, otherwise the lowered expression

Meta