addrs: OutputValue.InModule

Similar to other address types, this wraps the receiver up in its
associated "config" type, binding it to a particular not-yet-expanded
module.
pull/31706/head
Martin Atkins 4 years ago
parent 209b8de7a5
commit 696b403bf3

@ -32,6 +32,15 @@ func (v OutputValue) Absolute(m ModuleInstance) AbsOutputValue {
}
}
// InModule converts the receiver into a config address within the given
// module.
func (v OutputValue) InModule(m Module) ConfigOutputValue {
return ConfigOutputValue{
Module: m,
OutputValue: v,
}
}
// AbsOutputValue is the absolute address of an output value within a module instance.
//
// This represents an output globally within the namespace of a particular

Loading…
Cancel
Save