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.
cc #59178 (comment)
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).
Basically create a new enum
ConstKindwhich has all the variants ofConstValueexcept forScalar,Slice,ByRef.ConstKindshould then have a variant (maybeEvaluatedor justValue), which contains aConstValue.cc #59178 (comment)
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).