04bfeacc5b
With the updated undefined variable code, we attempt to pick the text of `${....}` verbatim from the hcl body. Previously, we'd attempt to regenerate the string from the AST and pray it matches input; the generation is lossy, as the same AST can represent multiple variations (e.g. `${v.0}` and `${v[0]}` have the same HCLv2 AST). In this change, we attempt to go back to the hcl2 source and find the string snippet corresponding to the variable reference. |
||
---|---|---|
.. | ||
addrs | ||
hclutil | ||
test-fixtures | ||
functions.go | ||
hcl_conversions.go | ||
helper_test.go | ||
parse.go | ||
parse_job.go | ||
parse_map.go | ||
parse_test.go | ||
types.config.go | ||
types.variables.go |