fdd68833f3
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. |
||
---|---|---|
.. | ||
hclhil | ||
json | ||
zclsyntax | ||
diagnostic_text_test.go | ||
diagnostic_text.go | ||
diagnostic.go | ||
didyoumean.go | ||
doc.go | ||
eval_context.go | ||
merged_test.go | ||
merged.go | ||
ops.go | ||
pos.go | ||
schema.go | ||
structure.go | ||
traversal.go |