Lines Matching defs:SetterMethod
2158 ObjCMethodDecl *SetterMethod = nullptr;
2168 SetterMethod = Property->isClassProperty() ?
2173 if (SetterMethod && SetterMethod->isSynthesizedAccessorStub())
2174 SetterMethod = nullptr;
2181 if (SetterMethod) {
2182 Diag(SetterMethod->getLocation(),
2198 SetterMethod = PIDecl->getSetterMethodDecl();
2201 if (SetterMethod && SetterMethod->isSynthesizedAccessorStub())
2202 SetterMethod = nullptr;
2203 if ((bool)GetterMethod ^ (bool)SetterMethod) {
2206 : SetterMethod->getLocation());
2209 << (SetterMethod != nullptr);
2356 ObjCMethodDecl *GetterMethod, *SetterMethod;
2376 SetterMethod = IsClassProperty ?
2379 if (!SetterMethod)
2382 SetterMethod = IsClassProperty ? CatDecl->getClassInterface()->
2407 if (!property->isReadOnly() && !SetterMethod) {
2423 if (!property->isReadOnly() && SetterMethod) {
2424 if (Context.getCanonicalType(SetterMethod->getReturnType()) !=
2426 Diag(SetterMethod->getLocation(), diag::err_setter_type_void);
2427 if (SetterMethod->param_size() != 1 ||
2429 (*SetterMethod->param_begin())->getType().getNonReferenceType(),
2434 << SetterMethod->getSelector();
2435 Diag(SetterMethod->getLocation(), diag::note_declared_at);
2509 if (!SetterMethod) {
2516 SetterMethod = ObjCMethodDecl::Create(
2546 ParmVarDecl *Argument = ParmVarDecl::Create(Context, SetterMethod,
2553 SetterMethod->setMethodParams(Context, Argument, {});
2555 AddPropertyAttrs(SemaRef, SetterMethod, property);
2558 SetterMethod->addAttr(ObjCDirectAttr::CreateImplicit(Context, Loc));
2560 CD->addDecl(SetterMethod);
2562 SetterMethod->addAttr(SectionAttr::CreateImplicit(
2565 SemaRef.ProcessAPINotes(SetterMethod);
2570 CheckARCMethodDecl(SetterMethod);
2574 SetterMethod->setPropertyAccessor(true);
2576 SetterMethod->createImplicitParams(Context,
2577 SetterMethod->getClassInterface());
2578 property->setSetterMethodDecl(SetterMethod);
2595 if (SetterMethod)
2596 AddInstanceMethodToGlobalPool(SetterMethod);
2600 if (SetterMethod)
2601 AddFactoryMethodToGlobalPool(SetterMethod);
2613 if (SetterMethod)
2614 CheckObjCMethodOverrides(SetterMethod, CurrentClass, SemaObjC::RTC_Unknown);