addrs: AbsLocalValue is a UniqueKeyer

This commit is contained in:
Martin Atkins 2023-11-21 09:46:24 -08:00
parent 3420fdd516
commit f1d68e89c0

View file

@ -55,3 +55,18 @@ func (v AbsLocalValue) String() string {
}
return fmt.Sprintf("%s.%s", v.Module.String(), v.LocalValue.String())
}
func (v AbsLocalValue) UniqueKey() UniqueKey {
return absLocalValueKey{
moduleKey: v.Module.UniqueKey(),
valueKey: v.LocalValue.UniqueKey(),
}
}
type absLocalValueKey struct {
moduleKey UniqueKey
valueKey UniqueKey
}
// uniqueKeySigil implements UniqueKey.
func (absLocalValueKey) uniqueKeySigil() {}