Lines Matching refs:RefExpr

265     ObjCPropertyRefExpr *RefExpr;  member in __anon15fab2e80111::ObjCPropertyOpBuilder
277 RefExpr(refExpr), SyntacticRefExpr(nullptr), in ObjCPropertyOpBuilder()
305 ObjCSubscriptRefExpr *RefExpr; member in __anon15fab2e80111::ObjCSubscriptOpBuilder
317 RefExpr(refExpr), InstanceBase(nullptr), InstanceKey(nullptr), in ObjCSubscriptOpBuilder()
335 MSPropertyRefExpr *RefExpr; member in __anon15fab2e80111::MSPropertyOpBuilder
344 RefExpr(refExpr), InstanceBase(nullptr) {} in MSPropertyOpBuilder()
348 RefExpr = getBaseMSProperty(refExpr); in MSPropertyOpBuilder()
583 if (RefExpr->isExplicitProperty()) { in isWeakProperty()
584 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
602 if (RefExpr->isImplicitProperty()) { in findGetter()
603 if ((Getter = RefExpr->getImplicitPropertyGetter())) { in findGetter()
609 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter(); in findGetter()
621 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
622 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr); in findGetter()
632 if (RefExpr->isImplicitProperty()) { in findSetter()
633 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) { in findSetter()
639 RefExpr->getImplicitPropertyGetter()->getSelector() in findSetter()
650 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
655 LookupMethodInReceiverType(S, SetterSelector, RefExpr)) { in findSetter()
669 S.Diag(RefExpr->getExprLoc(), diag::err_property_setter_ambiguous_use) in findSetter()
691 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
692 S.Diag(RefExpr->getLocation(), in DiagnoseUnsupportedPropertyUse()
705 if (RefExpr->isObjectReceiver()) { in rebuildAndCaptureObject()
706 InstanceReceiver = capture(RefExpr->getBase()); in rebuildAndCaptureObject()
730 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildGet()
735 if ((Getter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildGet()
736 RefExpr->isObjectReceiver()) { in buildGet()
737 assert(InstanceReceiver || RefExpr->isSuperReceiver()); in buildGet()
742 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildGet()
763 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildSet()
796 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildSet()
797 RefExpr->isObjectReceiver()) { in buildSet()
802 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildSet()
823 if (RefExpr->isImplicitProperty() && !RefExpr->getImplicitPropertyGetter()) { in buildRValueOperation()
824 S.Diag(RefExpr->getLocation(), diag::err_getter_not_found) in buildRValueOperation()
825 << RefExpr->getSourceRange(); in buildRValueOperation()
832 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType()) in buildRValueOperation()
833 S.DiagnosePropertyAccessorMismatch(RefExpr->getExplicitProperty(), in buildRValueOperation()
834 Getter, RefExpr->getLocation()); in buildRValueOperation()
838 if (RefExpr->isExplicitProperty() && result.get()->isRValue()) { in buildRValueOperation()
839 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildRValueOperation()
840 QualType propType = RefExpr->getExplicitProperty() in buildRValueOperation()
851 RefExpr->getLocation())) in buildRValueOperation()
852 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
901 << unsigned(RefExpr->isImplicitProperty()) in buildAssignmentOperation()
945 << unsigned(RefExpr->isImplicitProperty()) in buildIncDecOperation()
956 assert(RefExpr->isImplicitProperty()); in buildIncDecOperation()
1024 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1025 InstanceKey = capture(RefExpr->getKeyExpr()); in rebuildAndCaptureObject()
1141 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter()
1150 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexGetter()
1154 RefExpr->getKeyExpr()); in findAtIndexGetter()
1214 RefExpr->getSourceRange(), in findAtIndexGetter()
1222 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1231 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1244 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter()
1254 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexSetter()
1258 RefExpr->getKeyExpr()); in findAtIndexSetter()
1331 RefExpr->getSourceRange(), in findAtIndexSetter()
1339 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1347 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1359 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1362 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1448 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1464 if (!RefExpr->getPropertyDecl()->hasGetter()) { in buildGet()
1465 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildGet()
1466 << 0 /* getter */ << RefExpr->getPropertyDecl(); in buildGet()
1471 IdentifierInfo *II = RefExpr->getPropertyDecl()->getGetterId(); in buildGet()
1472 GetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildGet()
1474 SS.Adopt(RefExpr->getQualifierLoc()); in buildGet()
1477 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildGet()
1480 S.Diag(RefExpr->getMemberLoc(), in buildGet()
1482 << RefExpr->getPropertyDecl(); in buildGet()
1487 RefExpr->getSourceRange().getBegin(), CallArgs, in buildGet()
1488 RefExpr->getSourceRange().getEnd()); in buildGet()
1493 if (!RefExpr->getPropertyDecl()->hasSetter()) { in buildSet()
1494 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildSet()
1495 << 1 /* setter */ << RefExpr->getPropertyDecl(); in buildSet()
1500 IdentifierInfo *II = RefExpr->getPropertyDecl()->getSetterId(); in buildSet()
1501 SetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildSet()
1503 SS.Adopt(RefExpr->getQualifierLoc()); in buildSet()
1506 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildSet()
1509 S.Diag(RefExpr->getMemberLoc(), in buildSet()
1511 << RefExpr->getPropertyDecl(); in buildSet()
1519 RefExpr->getSourceRange().getBegin(), ArgExprs, in buildSet()
1542 } else if (MSPropertySubscriptExpr *RefExpr = in checkPseudoObjectRValue() local
1544 MSPropertyOpBuilder Builder(*this, RefExpr, true); in checkPseudoObjectRValue()
1573 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectIncDec() local
1575 MSPropertyOpBuilder Builder(*this, RefExpr, false); in checkPseudoObjectIncDec()
1612 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectAssignment() local
1614 MSPropertyOpBuilder Builder(*this, RefExpr, IsSimpleAssign); in checkPseudoObjectAssignment()