hcl/zcl
Martin Atkins fdd68833f3 zclsyntax: template single-interpolation case as separate AST node
Rather than setting an "Unwrap" field on the existing TemplateExpr, we'll
instead use a separate, simpler AST node.

There is very little in common between these two cases, so overloading the
TemplateExpr node doesn't buy much. A separate node is needed here,
rather than just returning the wrapped node directly, to give us somewhere
to capture the full source range extent of the wrapping template, whereas
the inner expression only captures the range of itself. This is important
both for good diagnostics and for transforming zclsyntax AST into
zclwrite AST.
2017-06-18 07:44:57 -07:00
..
hclhil Add MissingItemRange to zcl.BodyContent 2017-06-03 16:46:49 -07:00
json json: allow "//" keys to be used as comments in bodies 2017-06-17 10:17:05 -07:00
zclsyntax zclsyntax: template single-interpolation case as separate AST node 2017-06-18 07:44:57 -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 zclsyntax: look in parent EvalContexts for functions 2017-06-16 07:28:29 -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: allow nil Variables in EvalContext 2017-06-16 07:15:14 -07:00