op_overload

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

op_overload
(,,
TOK* pop = null
)

Parameters

e Expression

expression with operator

sc Scope*

context

pop TOK*

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

Return Value

null if not an operator overload, otherwise the lowered expression

Meta