terraform/configs/configupgrade/test-fixtures/valid/noop
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
..
input configs/configupgrade: Preserve comments on items in object exprs 2019-04-17 07:48:57 -07:00
want configs/configupgrade: Preserve comments on items in object exprs 2019-04-17 07:48:57 -07:00