hcl/zcl/zclsyntax
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
..
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: separate tokens for assign = and equality test == 2017-06-04 16:00:40 -07:00
expression_template_test.go zclsyntax: template interpolation trimming 2017-06-01 08:43:59 -07:00
expression_template.go zclsyntax: deal with template unwrapping at eval time 2017-06-11 08:39:40 -07:00
expression_test.go zclsyntax: ScopeTraversalExpr.Value implementation, and tests 2017-06-05 08:02:54 -07:00
expression_vars_gen.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
expression_vars.go zclsyntax: parsing of the index operator 2017-06-05 07:09:04 -07:00
expression.go zclsyntax: ScopeTraversalExpr.Value implementation, and tests 2017-06-05 08:02:54 -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
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_test.go zclsyntax: deal with template unwrapping at eval time 2017-06-11 08:39:40 -07:00
parser.go zclsyntax: deal with template unwrapping at eval time 2017-06-11 08:39:40 -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: scan correctly closing ~} markers 2017-06-01 08:36:48 -07:00
scan_tokens.go zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -07:00
scan_tokens.rl zclwrite: absorb lead comments into attributes 2017-06-08 09:04:27 -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: separate tokens for assign = and equality test == 2017-06-04 16:00:40 -07:00
token.go zclsyntax: run stringer after other generators 2017-06-05 07:04:26 -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.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
walk.go Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00