Home | History | Annotate | Download | only in Sema

Lines Matching defs:Setter

24 //  as a message-send of the associated 'setter' selector, typically:
249 /// setter call or the value that was passed to the setter?
271 ObjCMethodDecl *Setter;
279 Setter(nullptr) {
604 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter();
605 assert(setter && "both setter and getter are null - cannot happen");
607 setter->getSelector().getIdentifierInfoForSlot(0);
621 /// Try to find the most accurate setter declaration for the property
624 /// \return true if a setter was found, in which case Setter
628 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) {
629 Setter = setter;
630 SetterSelector = setter->getSelector();
649 if (ObjCMethodDecl *setter =
651 if (setter->isPropertyAccessor() && warn)
653 dyn_cast<ObjCInterfaceDecl>(setter->getDeclContext())) {
662 if (prop != prop1 && (prop1->getSetterMethodDecl() == setter)) {
664 << prop << prop1 << setter->getSelector();
669 Setter = setter;
763 QualType paramType = (*Setter->param_begin())->getType()
766 Setter->getDeclContext(),
787 if (!Setter->isImplicit())
788 S.DiagnoseUseOfDecl(Setter, GenericLoc, nullptr, true);
789 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) ||
792 GenericLoc, SetterSelector, Setter,
797 SetterSelector, Setter,
863 // The property has no setter and no getter! This can happen if the type is
885 // If there's no setter, we have no choice but to try to assign to
902 // If there is a setter, we definitely want to use it.
929 // If there's no setter, we have no choice but to try to assign to
947 // If there is a setter, we definitely want to use it.
1495 << 1 /* setter */ << RefExpr->getPropertyDecl();
1510 diag::error_cannot_find_suitable_accessor) << 1 /* setter */