Lines Matching refs:RefExpr

210     ObjCPropertyRefExpr *RefExpr;
221 PseudoOpBuilder(S, refExpr->getLocation()), RefExpr(refExpr),
245 ObjCSubscriptRefExpr *RefExpr;
257 RefExpr(refExpr),
478 if (RefExpr->isImplicitProperty()) {
479 if ((Getter = RefExpr->getImplicitPropertyGetter())) {
485 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter();
499 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty();
500 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr);
510 if (RefExpr->isImplicitProperty()) {
511 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) {
517 RefExpr->getImplicitPropertyGetter()->getSelector()
528 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty();
533 LookupMethodInReceiverType(S, SetterSelector, RefExpr)) {
545 S.Diag(RefExpr->getExprLoc(), diag::error_property_setter_ambiguous_use)
569 if (RefExpr->isObjectReceiver()) {
570 InstanceReceiver = capture(RefExpr->getBase());
592 if (RefExpr->isClassReceiver()) {
593 receiverType = S.Context.getObjCInterfaceType(RefExpr->getClassReceiver());
594 } else if (RefExpr->isSuperReceiver()) {
595 receiverType = RefExpr->getSuperReceiverType();
603 if (Getter->isInstanceMethod() || RefExpr->isObjectReceiver()) {
604 assert(InstanceReceiver || RefExpr->isSuperReceiver());
609 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(),
630 if (RefExpr->isClassReceiver()) {
631 receiverType = S.Context.getObjCInterfaceType(RefExpr->getClassReceiver());
632 } else if (RefExpr->isSuperReceiver()) {
633 receiverType = RefExpr->getSuperReceiverType();
663 if (Setter->isInstanceMethod() || RefExpr->isObjectReceiver()) {
668 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(),
688 if (RefExpr->isImplicitProperty() &&
689 !RefExpr->getImplicitPropertyGetter()) {
690 S.Diag(RefExpr->getLocation(), diag::err_getter_not_found)
691 << RefExpr->getBase()->getType();
698 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType())
699 S.DiagnosePropertyAccessorMismatch(RefExpr->getExplicitProperty(),
700 Getter, RefExpr->getLocation());
704 if (RefExpr->isExplicitProperty() && result.get()->isRValue() &&
706 QualType propType = RefExpr->getExplicitProperty()->getType();
755 << unsigned(RefExpr->isImplicitProperty())
799 << unsigned(RefExpr->isImplicitProperty())
810 assert(RefExpr->isImplicitProperty());
868 InstanceBase = capture(RefExpr->getBaseExpr());
869 InstanceKey = capture(RefExpr->getKeyExpr());
982 Expr *BaseExpr = RefExpr->getBaseExpr();
994 S.CheckSubscriptingKind(RefExpr->getKeyExpr());
998 RefExpr->getKeyExpr());
1063 RefExpr->getSourceRange(),
1071 S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
1080 S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
1093 Expr *BaseExpr = RefExpr->getBaseExpr();
1106 S.CheckSubscriptingKind(RefExpr->getKeyExpr());
1110 RefExpr->getKeyExpr());
1190 RefExpr->getSourceRange(),
1198 S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
1206 S.Diag(RefExpr->getBaseExpr()->getExprLoc(),
1218 S.Diag(RefExpr->getKeyExpr()->getExprLoc(),
1221 S.Diag(RefExpr->getBaseExpr()->getExprLoc(),