c22ad7a9a6
The two cases where we decode attribute values should include the expression and EvalContext in any diagnostics they generate so that the calling application can give hints about the types and values of variables that are used within the expression. This also includes some adjustments to the returned source ranges so that both cases are consistent with one another and so that both indicate the entire expression as the Subject and include the attribute name in the Context. Including the whole expression in the range ensures that when there's a problem inside a tuple or object constructor, for example, we'll show the line containing the problem and not just the opening [ or { symbol. |
||
---|---|---|
.. | ||
block_labels.go | ||
decode.go | ||
doc.go | ||
gob.go | ||
public_test.go | ||
public.go | ||
schema.go | ||
spec_test.go | ||
spec.go | ||
variables_test.go | ||
variables.go |