hcl/zcl/zclsyntax
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
..
didyoumean_test.go zclsyntax: "Did you mean ...?" helper function 2017-05-25 07:14:29 -07:00
didyoumean.go zclsyntax: "Did you mean ...?" helper function 2017-05-25 07:14:29 -07:00
doc.go zclsyntax: Start to stub out the zclsyntax package 2017-05-23 08:05:44 -07:00
expression_ops.go zclsyntax: visit both LHS and RHS of binary op in walk 2017-06-14 07:29:37 -07:00
expression_template_test.go zclsyntax: change template control sequence introducer to %{ 2017-06-17 18:33:56 -07:00
expression_template.go zclsyntax: template single-interpolation case as separate AST node 2017-06-18 07:44:57 -07:00
expression_test.go zclsyntax: specific error message for nested attr-only splat 2017-06-16 08:39:28 -07:00
expression_vars_gen.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
expression_vars.go zclsyntax: template single-interpolation case as separate AST node 2017-06-18 07:44:57 -07:00
expression.go zclsyntax: evaluation of splat expressions 2017-06-16 08:31:01 -07:00
file.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
generate.go zclsyntax: run stringer after other generators 2017-06-05 07:04:26 -07:00
keywords.go zclsyntax: parsing of template if construct 2017-06-17 10:07:59 -07:00
navigation.go zclsyntax: Implement the ContextString interface on our Nav 2017-06-04 09:52:16 -07:00
node.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
parser_template.go zclsyntax: template single-interpolation case as separate AST node 2017-06-18 07:44:57 -07:00
parser_test.go zclsyntax: template single-interpolation case as separate AST node 2017-06-18 07:44:57 -07:00
parser.go zclsyntax: template single-interpolation case as separate AST node 2017-06-18 07:44:57 -07:00
peeker_test.go zclsyntax: "peeker" helper 2017-05-29 18:09:58 -07:00
peeker.go zclsyntax: peeker pretends single-line comments are newlines 2017-06-09 07:19:25 -07:00
public.go zclsyntax: deal with template unwrapping at eval time 2017-06-11 08:39:40 -07:00
scan_tokens_test.go zclsyntax: change template control sequence introducer to %{ 2017-06-17 18:33:56 -07:00
scan_tokens.go zclsyntax: change template control sequence introducer to %{ 2017-06-17 18:33:56 -07:00
scan_tokens.rl zclsyntax: change template control sequence introducer to %{ 2017-06-17 18:33:56 -07:00
structure_test.go zclsyntax: Body.Content and Body.PartialContent 2017-06-03 09:04:16 -07:00
structure.go Add MissingItemRange to zcl.BodyContent 2017-06-03 16:46:49 -07:00
token_type_string.go zclsyntax: Ellipsis and "fat arrow" tokens 2017-06-13 08:50:20 -07:00
token.go zclsyntax: Ellipsis and "fat arrow" tokens 2017-06-13 08:50:20 -07:00
unicode2ragel.rb zclsyntax: identifiers in the scanner 2017-05-28 09:16:53 -07:00
unicode_derived.rl zclsyntax: identifiers in the scanner 2017-05-28 09:16:53 -07:00
variables_test.go zclsyntax: In Variables, don't return traversals in child scopes 2017-06-14 08:03:32 -07:00
variables.go zclsyntax: In Variables, don't return traversals in child scopes 2017-06-14 08:03:32 -07:00
walk.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00