op_overload

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

op_overload
(,,
TOK* pop = null
)

Parameters

e

expression with operator

sc
Type: Scope*

context

pop
Type: 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