// ModuleCallOutput converts an AbsModuleOutput into a ModuleCallOutput,
// returning also the module instance that the ModuleCallOutput is relative
// to.
//
// The root module does not have a call, and so this method cannot be used
// with outputs in the root module, and will panic in that case.
ModuleCallOutput converts an AbsModuleOutput into a ModuleCallOutput,
returning also the module instance that the ModuleCallOutput is relative
to.

The root module does not have a call, and so this method cannot be used
with outputs in the root module, and will panic in that case.
// ModuleCallOutput converts an AbsModuleOutput into a ModuleCallOutput // returning also the module instance that the ModuleCallOutput is relative // to . // // The root module does not have a call and so this method cannot be used // with outputs in the root module and will panic in that case .
func (v AbsOutputValue) ModuleCallOutput() (ModuleInstance, AbsModuleCallOutput) {
	if v.Module.IsRoot() {
		panic("ReferenceFromCall used with root module output")
	}
	caller, call := v.Module.CallInstance()
	return caller, AbsModuleCallOutput{
		Call: call,
		Name: v.OutputValue.Name,
	}
}
func ( v AbsOutputValue ) ModuleCallOutput ( ) ( ModuleInstance , AbsModuleCallOutput ) { if v . Module . IsRoot ( ) { panic ( " " ) } caller , call := v . Module . CallInstance ( ) return caller , AbsModuleCallOutput { Call : call , Name : v . OutputValue . Name , } }
ModuleCallOutput converts an AbsModuleOutput into a ModuleCallOutput,
returning also the module instance that the ModuleCallOutput is relative
to.
ModuleCallOutput converts an AbsModuleOutput into a ModuleCallOutput returning also the module instance that the ModuleCallOutput is relative to .