Home | History | Annotate | Download | only in Sema

Lines Matching refs:Getter

21 //  of the associated 'getter' selector, typically:
262 ObjCMethodDecl *Getter;
271 SyntacticRefExpr(nullptr), InstanceReceiver(nullptr), Getter(nullptr),
548 } else if (Getter) {
549 T = Getter->getReturnType();
558 if (Getter) return true;
562 if ((Getter = RefExpr->getImplicitPropertyGetter())) {
563 GetterSelector = Getter->getSelector();
567 // Must build the getter selector the hard way.
569 assert(setter && "both setter and getter are null - cannot happen");
581 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr);
582 return (Getter != nullptr);
682 if (!Getter && DiagnoseUnsupportedPropertyUse())
685 assert(Getter);
699 if (!Getter->isImplicit())
700 S.DiagnoseUseOfDecl(Getter, GenericLoc, nullptr, true);
703 if ((Getter->isInstanceMethod() && !RefExpr->isClassReceiver()) ||
707 GenericLoc, Getter->getSelector(),
708 Getter, None);
711 GenericLoc, Getter->getSelector(),
712 Getter, None);
813 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType())
815 Getter, RefExpr->getLocation());
839 /// Try to build this as a call to a getter that returns a reference.
848 assert(Getter && "property has no setter and no getter!");
850 // Only do this if the getter returns an l-value reference type.
851 QualType resultType = Getter->getReturnType();
867 // the result of the getter.
911 // the result of the getter.
930 // We also need a getter.
1098 ObjCMethodDecl *Getter = S.LookupMethodInObjectType(GetterSelector, ContainerT,
1100 if (!Getter)
1102 QualType T = Getter->parameters()[0]->getType();
1429 << 0 /* getter */ << RefExpr->getPropertyDecl();
1444 diag::error_cannot_find_suitable_accessor) << 0 /* getter */