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
|
eachMode = states.EachMap
|
||||||
}
|
}
|
||||||
|
|
||||||
// nodeExpandModule itself does not have visibility into how it's ancestors
|
// nodeExpandModule itself does not have visibility into how its ancestors
|
||||||
// were expended, so we use the expander here to provide all possible paths
|
// were expanded, so we use the expander here to provide all possible paths
|
||||||
// to our module, and register module instances with each of them.
|
// to our module, and register module instances with each of them.
|
||||||
for _, path := range expander.ExpandModule(n.Addr.Parent()) {
|
for _, path := range expander.ExpandModule(n.Addr.Parent()) {
|
||||||
switch eachMode {
|
switch eachMode {
|
||||||
|
|
|
@ -32,7 +32,7 @@ func (n *NodeModuleRemoved) Path() addrs.ModuleInstance {
|
||||||
// GraphNodeModulePath implementation
|
// GraphNodeModulePath implementation
|
||||||
func (n *NodeModuleRemoved) ModulePath() addrs.Module {
|
func (n *NodeModuleRemoved) ModulePath() addrs.Module {
|
||||||
// This node represents the module call within a 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
|
// call may expand into multiple child instances
|
||||||
return n.Addr.Module()
|
return n.Addr.Module()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue