hcl/hcldec
Martin Atkins c22ad7a9a6 hcldec: Improved context for expression diagnostics
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.
2019-12-11 07:25:33 -08:00
..
block_labels.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
decode.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
doc.go Update doc comments and readmes for zcl -> HCL. 2017-09-11 16:56:31 -07:00
gob.go hcldec: BlockLabelSpec decoding 2017-10-03 15:59:20 -07:00
public_test.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
public.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
schema.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
spec_test.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
spec.go hcldec: Improved context for expression diagnostics 2019-12-11 07:25:33 -08:00
variables_test.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
variables.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00