Lines Matching refs:Setter
23 // as a message-send of the associated 'setter' selector, typically:
248 /// setter call or the value that was passed to the setter?
270 ObjCMethodDecl *Setter;
278 InstanceReceiver(nullptr), Getter(nullptr), Setter(nullptr) {
609 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter();
610 assert(setter && "both setter and getter are null - cannot happen");
612 setter->getSelector().getIdentifierInfoForSlot(0);
626 /// Try to find the most accurate setter declaration for the property
629 /// \return true if a setter was found, in which case Setter
633 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) {
634 Setter = setter;
635 SetterSelector = setter->getSelector();
654 if (ObjCMethodDecl *setter =
656 if (setter->isPropertyAccessor() && warn)
658 dyn_cast<ObjCInterfaceDecl>(setter->getDeclContext())) {
668 if (prop != prop1 && (prop1->getSetterMethodDecl() == setter)) {
670 << prop << prop1 << setter->getSelector();
675 Setter = setter;
769 QualType paramType = (*Setter->param_begin())->getType()
772 Setter->getDeclContext(),
794 if (!Setter->isImplicit())
795 S.DiagnoseUseOfDecl(Setter, GenericLoc, nullptr, true);
796 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) ||
799 GenericLoc, SetterSelector, Setter,
804 SetterSelector, Setter,
868 // The property has no setter and no getter! This can happen if the type is
890 // If there's no setter, we have no choice but to try to assign to
907 // If there is a setter, we definitely want to use it.
934 // If there's no setter, we have no choice but to try to assign to
952 // If there is a setter, we definitely want to use it.
1495 << 1 /* setter */ << RefExpr->getPropertyDecl();
1510 diag::err_cannot_find_suitable_accessor) << 1 /* setter */