Lines Matching refs:RefExpr
270 ObjCPropertyRefExpr *RefExpr; member in __anon99ff7d920111::ObjCPropertyOpBuilder
282 RefExpr(refExpr), SyntacticRefExpr(nullptr), in ObjCPropertyOpBuilder()
310 ObjCSubscriptRefExpr *RefExpr; member in __anon99ff7d920111::ObjCSubscriptOpBuilder
322 RefExpr(refExpr), InstanceBase(nullptr), InstanceKey(nullptr), in ObjCSubscriptOpBuilder()
340 MSPropertyRefExpr *RefExpr; member in __anon99ff7d920111::MSPropertyOpBuilder
349 RefExpr(refExpr), InstanceBase(nullptr) {} in MSPropertyOpBuilder()
353 RefExpr = getBaseMSProperty(refExpr); in MSPropertyOpBuilder()
588 if (RefExpr->isExplicitProperty()) { in isWeakProperty()
589 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
607 if (RefExpr->isImplicitProperty()) { in findGetter()
608 if ((Getter = RefExpr->getImplicitPropertyGetter())) { in findGetter()
614 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter(); in findGetter()
626 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
627 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr); in findGetter()
637 if (RefExpr->isImplicitProperty()) { in findSetter()
638 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) { in findSetter()
644 RefExpr->getImplicitPropertyGetter()->getSelector() in findSetter()
655 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
660 LookupMethodInReceiverType(S, SetterSelector, RefExpr)) { in findSetter()
674 S.Diag(RefExpr->getExprLoc(), diag::err_property_setter_ambiguous_use) in findSetter()
696 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
697 S.Diag(RefExpr->getLocation(), in DiagnoseUnsupportedPropertyUse()
710 if (RefExpr->isObjectReceiver()) { in rebuildAndCaptureObject()
711 InstanceReceiver = capture(RefExpr->getBase()); in rebuildAndCaptureObject()
735 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildGet()
740 if ((Getter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildGet()
741 RefExpr->isObjectReceiver()) { in buildGet()
742 assert(InstanceReceiver || RefExpr->isSuperReceiver()); in buildGet()
747 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildGet()
768 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildSet()
801 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildSet()
802 RefExpr->isObjectReceiver()) { in buildSet()
807 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildSet()
828 if (RefExpr->isImplicitProperty() && !RefExpr->getImplicitPropertyGetter()) { in buildRValueOperation()
829 S.Diag(RefExpr->getLocation(), diag::err_getter_not_found) in buildRValueOperation()
830 << RefExpr->getSourceRange(); in buildRValueOperation()
837 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType()) in buildRValueOperation()
838 S.DiagnosePropertyAccessorMismatch(RefExpr->getExplicitProperty(), in buildRValueOperation()
839 Getter, RefExpr->getLocation()); in buildRValueOperation()
843 if (RefExpr->isExplicitProperty() && result.get()->isPRValue()) { in buildRValueOperation()
844 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildRValueOperation()
845 QualType propType = RefExpr->getExplicitProperty() in buildRValueOperation()
856 RefExpr->getLocation())) in buildRValueOperation()
857 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
906 << unsigned(RefExpr->isImplicitProperty()) in buildAssignmentOperation()
950 << unsigned(RefExpr->isImplicitProperty()) in buildIncDecOperation()
961 assert(RefExpr->isImplicitProperty()); in buildIncDecOperation()
1029 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1030 InstanceKey = capture(RefExpr->getKeyExpr()); in rebuildAndCaptureObject()
1146 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter()
1155 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexGetter()
1159 RefExpr->getKeyExpr()); in findAtIndexGetter()
1219 RefExpr->getSourceRange(), in findAtIndexGetter()
1227 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1236 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1249 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter()
1259 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexSetter()
1263 RefExpr->getKeyExpr()); in findAtIndexSetter()
1336 RefExpr->getSourceRange(), in findAtIndexSetter()
1344 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1352 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1364 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1367 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1453 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1470 if (!RefExpr->getPropertyDecl()->hasGetter()) { in buildGet()
1471 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildGet()
1472 << 0 /* getter */ << RefExpr->getPropertyDecl(); in buildGet()
1477 IdentifierInfo *II = RefExpr->getPropertyDecl()->getGetterId(); in buildGet()
1478 GetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildGet()
1480 SS.Adopt(RefExpr->getQualifierLoc()); in buildGet()
1483 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildGet()
1486 S.Diag(RefExpr->getMemberLoc(), in buildGet()
1488 << RefExpr->getPropertyDecl(); in buildGet()
1493 RefExpr->getSourceRange().getBegin(), CallArgs, in buildGet()
1494 RefExpr->getSourceRange().getEnd()); in buildGet()
1499 if (!RefExpr->getPropertyDecl()->hasSetter()) { in buildSet()
1500 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildSet()
1501 << 1 /* setter */ << RefExpr->getPropertyDecl(); in buildSet()
1506 IdentifierInfo *II = RefExpr->getPropertyDecl()->getSetterId(); in buildSet()
1507 SetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildSet()
1509 SS.Adopt(RefExpr->getQualifierLoc()); in buildSet()
1512 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildSet()
1515 S.Diag(RefExpr->getMemberLoc(), in buildSet()
1517 << RefExpr->getPropertyDecl(); in buildSet()
1525 RefExpr->getSourceRange().getBegin(), ArgExprs, in buildSet()
1548 } else if (MSPropertySubscriptExpr *RefExpr = in checkPseudoObjectRValue() local
1550 MSPropertyOpBuilder Builder(*this, RefExpr, true); in checkPseudoObjectRValue()
1579 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectIncDec() local
1581 MSPropertyOpBuilder Builder(*this, RefExpr, false); in checkPseudoObjectIncDec()
1618 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectAssignment() local
1620 MSPropertyOpBuilder Builder(*this, RefExpr, IsSimpleAssign); in checkPseudoObjectAssignment()