opentofu/configs
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
..
configload copyDir: detect if the module install path is a symlink to a directory (#20603) 2019-03-07 12:59:48 -08:00
configschema configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
configupgrade configs/configupgrade: Preserve comments on items in object exprs 2019-04-17 07:48:57 -07:00
test-fixtures configs: Handle "dynamic" blocks as special during override merging 2019-04-16 06:58:45 -07:00
backend.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
compat_shim.go configs: Handle object constructor keys when shimming traversals 2018-10-16 18:49:20 -07:00
config_build_test.go configs/configload: package for loading configurations 2018-02-15 15:56:38 -08:00
config_build.go configs: use addrs.Module for module path, rather than []string 2018-10-16 18:46:46 -07:00
config_test.go various: helpers for collecting necessary provider types 2018-10-16 18:50:29 -07:00
config.go grammatical updates to comments and docs (#20195) 2019-03-21 14:05:41 -07:00
depends_on.go configs: quoted keywords/references are warnings, not errors 2018-02-15 15:56:39 -08:00
doc.go configs: Additional guidance in doc.go 2018-02-15 15:56:39 -08:00
module_call_test.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
module_call.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
module_merge_body.go configs: Handle "dynamic" blocks as special during override merging 2019-04-16 06:58:45 -07:00
module_merge_test.go configs: Handle "dynamic" blocks as special during override merging 2019-04-16 06:58:45 -07:00
module_merge.go configs: Re-unify the ManagedResource and DataResource types 2018-10-16 18:44:26 -07:00
module.go configs: Allow looking up resources by resource addresses. 2018-10-16 18:46:46 -07:00
named_values.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
parser_config_dir_test.go configs: record the source directory for modules 2018-10-16 18:46:46 -07:00
parser_config_dir.go configload: Configuration snapshots 2018-10-16 18:50:29 -07:00
parser_config_test.go Fix tests after upgrading hcl 2018-11-26 23:38:37 +00:00
parser_config.go configs: allow full type constraints for variables 2018-03-08 16:23:35 -08:00
parser_test.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
parser_values_test.go configs: update values file invalid syntax test for new HCL behavior 2018-03-08 11:17:39 -08:00
parser_values.go configs: Parser.LoadValuesFile 2018-02-15 15:56:37 -08:00
parser.go command: 0.12upgrade command 2018-10-16 18:50:29 -07:00
provider_test.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
provider.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
provisioner.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
provisioneronfailure_string.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
provisionerwhen_string.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
resource.go configs: Reserve various names for future use 2018-11-26 08:25:03 -08:00
synth_body_test.go configs: Export MergeBodies and new SynthBody function 2018-10-16 18:24:47 -07:00
synth_body.go configs: Export MergeBodies and new SynthBody function 2018-10-16 18:24:47 -07:00
util.go configs: Handle "dynamic" blocks as special during override merging 2019-04-16 06:58:45 -07:00
variable_type_hint.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
variabletypehint_string.go configs: stub out main configuration structs 2018-02-15 15:56:37 -08:00
version_constraint.go configs: do not panic if module version is a variable (#20681) 2019-03-14 09:12:27 -07:00