comment fixes
This commit is contained in:
parent
33464568e8
commit
4a1ec05092
|
@ -110,8 +110,8 @@ func (n *evalPrepareModuleExpansion) Eval(ctx EvalContext) (interface{}, error)
|
|||
eachMode = states.EachMap
|
||||
}
|
||||
|
||||
// nodeExpandModule itself does not have visibility into how it's ancestors
|
||||
// were expended, so we use the expander here to provide all possible paths
|
||||
// nodeExpandModule itself does not have visibility into how its ancestors
|
||||
// were expanded, so we use the expander here to provide all possible paths
|
||||
// to our module, and register module instances with each of them.
|
||||
for _, path := range expander.ExpandModule(n.Addr.Parent()) {
|
||||
switch eachMode {
|
||||
|
|
|
@ -32,7 +32,7 @@ func (n *NodeModuleRemoved) Path() addrs.ModuleInstance {
|
|||
// GraphNodeModulePath implementation
|
||||
func (n *NodeModuleRemoved) ModulePath() addrs.Module {
|
||||
// This node represents the module call within a module,
|
||||
// so return the CallerAddr as the path as the module
|
||||
// so return the CallerAddr as the path, as the module
|
||||
// call may expand into multiple child instances
|
||||
return n.Addr.Module()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue