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())) {
663 if (prop != prop1 && (prop1->getSetterMethodDecl() == setter)) {
665 << prop << prop1 << setter->getSelector();
670 Setter = setter;
764 QualType paramType = (*Setter->param_begin())->getType()
767 Setter->getDeclContext(),
788 if (!Setter->isImplicit())
789 S.DiagnoseUseOfDecl(Setter, GenericLoc, nullptr, true);
790 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) ||
793 GenericLoc, SetterSelector, Setter,
798 SetterSelector, Setter,
864 // The property has no setter and no getter! This can happen if the type is
886 // If there's no setter, we have no choice but to try to assign to
903 // If there is a setter, we definitely want to use it.
930 // If there's no setter, we have no choice but to try to assign to
948 // If there is a setter, we definitely want to use it.
1496 << 1 /* setter */ << RefExpr->getPropertyDecl();
1511 diag::error_cannot_find_suitable_accessor) << 1 /* setter */