Add EvalContext
argument for Expression.GetType
and ParamMarker.GetUserVar
#53533
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
Ref #53485 (comment). As the actual type and internal datum depend on the context, we should explicitly pass the context through the argument, rather than store it in the
ParamMarker
. It'll be a big change.It'll introduce three modification:
ctx
inParamMarker
.EvalContext
argument forExpression.GetType
.EvalContext
argument forString
(replaceString
withStringWithCtx
)The most concerning issue is that the
.String()
method cannot accept a parameter. We should analyze the usage of it carefully. Sometimes, returning a simple?
is enough, but it's not always good to do so. If not, we canEval
it, or provide another function to get the debug output with context 🤔 .The text was updated successfully, but these errors were encountered: