terraform/configs/configupgrade/test-fixtures/valid/noop/want
Martin Atkins 1bb47ab9a5 configs/configupgrade: Preserve comments on items in object exprs
The expression upgrade functionality mostly ignores comments because in
the old language the syntax prevented comments from appearing in the
middle of expressions, but there was one exception: object expressions.

Because HCL 1 used ObjectType both for blocks and for object expressions,
that is the one situation where something we consider to be an expression
could have inline attached comments in the old language.

We migrate these here so we don't lose these comments that don't appear
anywhere else. Other comments get gathered up into a general comments
set maintained inside the analysis object and so will be printed out as
required _between_ expressions, just as they did before.
2019-04-17 07:48:57 -07:00
..
modules.tf configs/configupgrade: Initial passthrough mapping for module blocks 2018-12-05 10:25:01 -08:00
outputs.tf configupgrade: Beginnings of Upgrade function 2018-10-16 18:50:29 -07:00
providers.tf configupgrade: Beginnings of Upgrade function 2018-10-16 18:50:29 -07:00
resources.tf configs/configupgrade: Preserve comments on items in object exprs 2019-04-17 07:48:57 -07:00
variables.tf configupgrade: Basic expression formatting 2018-10-16 18:50:29 -07:00
versions.tf configupgrade: Basic expression formatting 2018-10-16 18:50:29 -07:00