Enhancements
- hcldec: Attribute evaluation (as part of
AttrSpec
orBlockAttrsSpec
) now captures expression evaluation metadata in any errors it produces during type conversions, allowing for better feedback in calling applications that are able to make use of this metadata when printing diagnostic messages. (#329)
Bugs Fixed
- hclsyntax:
IndexExpr
,SplatExpr
, andRelativeTraversalExpr
will now report a source range that covers all of their child expression nodes. Previously they would report only the operator part, such as["foo"]
,[*]
, or.foo
, which was problematic for callers using source ranges for code analysis. (#328) - hclwrite: Parser will no longer panic when the input includes index, splat, or relative traversal syntax. (#328)