hcl/zcl
Martin Atkins 09f9e6c8e8 zclsyntax: deal with template unwrapping at eval time
Previously we were detecting the exactly-one-part case at parse time and
skipping the TemplateExpr node in the AST, but this was problematic
because we then misaligned the source range for the expression to the
_content_ of the quotes, rather than including the quotes themselves.

As well as producing confusing diagnostics, this also caused problems for
zclwrite since it relies on source ranges to map our AST back onto the
source tokens it came from.
2017-06-11 08:39:40 -07:00
..
hclhil Add MissingItemRange to zcl.BodyContent 2017-06-03 16:46:49 -07:00
json Add MissingItemRange to zcl.BodyContent 2017-06-03 16:46:49 -07:00
zclsyntax zclsyntax: deal with template unwrapping at eval time 2017-06-11 08:39:40 -07:00
diagnostic_text_test.go Mechanism for introspection of source code for editors 2017-05-19 19:33:58 -07:00
diagnostic_text.go Mechanism for introspection of source code for editors 2017-05-19 19:33:58 -07:00
diagnostic.go Initial support for printing out diagnostics 2017-05-18 19:01:41 -07:00
didyoumean.go zcl: Implement Traversal.TraverseAbs 2017-06-05 07:55:33 -07:00
doc.go Initial stubs of the public API 2017-05-13 17:44:11 -07:00
eval_context.go Update cty references to its new home in the zclconf github account 2017-05-27 17:35:44 -07:00
merged_test.go Define Body.JustAttributes as returning Attributes 2017-05-21 15:43:41 -07:00
merged.go Define Body.JustAttributes as returning Attributes 2017-05-21 15:43:41 -07:00
ops.go zcl: Automatically convert key types when indexing 2017-06-05 07:39:14 -07:00
pos.go zcl: Range.String should not be a pointer method 2017-06-11 08:37:28 -07:00
schema.go json: start of low-level decoding 2017-05-19 19:33:58 -07:00
structure.go Add MissingItemRange to zcl.BodyContent 2017-06-03 16:46:49 -07:00
traversal.go zcl: Implement Traversal.TraverseAbs 2017-06-05 07:55:33 -07:00