Compiler implementation of the D programming language.
If variable has a const initializer, return that initializer.
Constant fold an Expression.
Expression e
| expression to const fold; this may get modified in-place |
int result
| WANTvalue, WANTexpand, or both |
bool keepLvalue
|
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 |
e
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_optimize.html