Equal methods for move AbsMoveable
Make sure all the types are comparable
This commit is contained in:
parent
08edb02270
commit
88ad938cc6
|
@ -37,6 +37,10 @@ func (c ModuleCall) Absolute(moduleAddr ModuleInstance) AbsModuleCall {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c ModuleCall) Equal(other ModuleCall) bool {
|
||||||
|
return c.Name == other.Name
|
||||||
|
}
|
||||||
|
|
||||||
// AbsModuleCall is the address of a "module" block relative to the root
|
// AbsModuleCall is the address of a "module" block relative to the root
|
||||||
// of the configuration.
|
// of the configuration.
|
||||||
//
|
//
|
||||||
|
@ -70,6 +74,10 @@ func (c AbsModuleCall) Instance(key InstanceKey) ModuleInstance {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c AbsModuleCall) Equal(other AbsModuleCall) bool {
|
||||||
|
return c.Module.Equal(other.Module) && c.Call.Equal(other.Call)
|
||||||
|
}
|
||||||
|
|
||||||
type absModuleCallInstanceKey string
|
type absModuleCallInstanceKey string
|
||||||
|
|
||||||
func (c AbsModuleCall) UniqueKey() UniqueKey {
|
func (c AbsModuleCall) UniqueKey() UniqueKey {
|
||||||
|
|
Loading…
Reference in New Issue