'Decorate an implementation of __setattr__ for type *ty* and
the attribute *attr*.
The decorated implementation will have the signature
(context, builder, sig, args).'

def lower_setattr(self, ty, attr):

    def decorate(impl):
        return self._decorate_attr(impl, ty, attr, self.setattrs, _decorate_setattr)
    return decorate
