Expression_optimize

Constant fold an Expression.

Expression_optimize

Parameters

e Expression

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

result int

WANTvalue, WANTexpand, or both

keepLvalue 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