// containsOrigin reports whether the provided object set contains an object // with the same origin as the provided obj (which may be a synthetic object // created during instantiation). func containsOrigin(objSet map[types.Object]bool, obj types.Object) bool { … } func origin(obj types.Object) types.Object { … }