mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
3212f6f367
Our documentation for ModuleCall originally asserted that we didn't need AbsModuleCall because ModuleInstance captured the same information, but when we added count and for_each for modules we introduced ModuleCallInstance to represent a reference to an instance of a local module call, and now _that_ is the type whose absolute equivalent is ModuleInstance. We previously had no absolute representation of the call itself, without any particular instance. That's what AbsModuleCall now represents, allowing us to be explicit about when we're talking about the module block vs. instances it declares, which is the same distinction represented by AbsResource vs. AbsResourceInstance. Just like with AbsResource and AbsResourceInstance though, there is syntactic ambiguity between a no-key call instance and a whole module call, and so some codepaths might accept both to start and then use other context to dynamically choose a particular interpretation, in which case this distinction becomes meaningful in representing the result of that decision. |
||
---|---|---|
.. | ||
count_attr.go | ||
doc.go | ||
for_each_attr.go | ||
input_variable.go | ||
instance_key.go | ||
local_value.go | ||
module_call.go | ||
module_instance_test.go | ||
module_instance.go | ||
module_package.go | ||
module_source_test.go | ||
module_source.go | ||
module_test.go | ||
module.go | ||
output_value_test.go | ||
output_value.go | ||
parse_ref_test.go | ||
parse_ref.go | ||
parse_target_test.go | ||
parse_target.go | ||
path_attr.go | ||
provider_config_test.go | ||
provider_config.go | ||
provider_test.go | ||
provider.go | ||
referenceable.go | ||
resource_phase.go | ||
resource_test.go | ||
resource.go | ||
resourcemode_string.go | ||
self.go | ||
target_test.go | ||
targetable.go | ||
terraform_attr.go |