Expression_optimize

Constant fold an Expression.

Expression_optimize

Parameters

e

expression to const fold; this may get modified in-place

result
Type: int

WANTvalue, WANTexpand, or both

keepLvalue
Type: bool

e is an lvalue, and keep it as an lvalue since it is an argument to a ref or out parameter, or the operand of & operator

Return Value

Constant folded version of e

Meta