make NodeModuleRemoved a GraphNodeReferencer

This was the node can be automatically connected by the
ReferenceTransformer.
This commit is contained in:
James Bardin 2017-11-09 10:30:55 -05:00
parent 14cc654b16
commit 5915d883d2
1 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,14 @@ func (n *NodeModuleRemoved) EvalTree() EvalNode {
}
}
func (n *NodeModuleRemoved) ReferenceGlobal() bool {
return true
}
func (n *NodeModuleRemoved) References() []string {
return []string{modulePrefixStr(n.PathValue)}
}
// EvalDeleteModule is an EvalNode implementation that removes an empty module
// entry from the state.
type EvalDeleteModule struct {