Closed
Description
Basically create a new enum ConstKind
which has all the variants of ConstValue
except for Scalar
, Slice
, ByRef
. ConstKind
should then have a variant (maybe Evaluated
or just Value
), which contains a ConstValue
.
continuation of #54738
This is actually just some mechanical refactoring, but also a ton of work (since you'll be touching almost every occurrence of ConstValue
).