Lines Matching refs:RefExpr
274 ObjCPropertyRefExpr *RefExpr; member in __anon9ddd17eb0111::ObjCPropertyOpBuilder
286 RefExpr(refExpr), SyntacticRefExpr(nullptr), in ObjCPropertyOpBuilder()
314 ObjCSubscriptRefExpr *RefExpr; member in __anon9ddd17eb0111::ObjCSubscriptOpBuilder
326 RefExpr(refExpr), InstanceBase(nullptr), InstanceKey(nullptr), in ObjCSubscriptOpBuilder()
344 MSPropertyRefExpr *RefExpr; member in __anon9ddd17eb0111::MSPropertyOpBuilder
353 RefExpr(refExpr), InstanceBase(nullptr) {} in MSPropertyOpBuilder()
357 RefExpr = getBaseMSProperty(refExpr); in MSPropertyOpBuilder()
593 if (RefExpr->isExplicitProperty()) { in isWeakProperty()
594 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
612 if (RefExpr->isImplicitProperty()) { in findGetter()
613 if ((Getter = RefExpr->getImplicitPropertyGetter())) { in findGetter()
619 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter(); in findGetter()
631 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
632 Getter = LookupMethodInReceiverType(S, prop->getGetterName(), RefExpr); in findGetter()
642 if (RefExpr->isImplicitProperty()) { in findSetter()
643 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) { in findSetter()
649 RefExpr->getImplicitPropertyGetter()->getSelector() in findSetter()
660 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
665 LookupMethodInReceiverType(S, SetterSelector, RefExpr)) { in findSetter()
679 S.Diag(RefExpr->getExprLoc(), diag::err_property_setter_ambiguous_use) in findSetter()
701 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
702 S.Diag(RefExpr->getLocation(), in DiagnoseUnsupportedPropertyUse()
715 if (RefExpr->isObjectReceiver()) { in rebuildAndCaptureObject()
716 InstanceReceiver = capture(RefExpr->getBase()); in rebuildAndCaptureObject()
740 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildGet()
745 if ((Getter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildGet()
746 RefExpr->isObjectReceiver()) { in buildGet()
747 assert(InstanceReceiver || RefExpr->isSuperReceiver()); in buildGet()
752 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildGet()
773 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildSet()
806 if ((Setter->isInstanceMethod() && !RefExpr->isClassReceiver()) || in buildSet()
807 RefExpr->isObjectReceiver()) { in buildSet()
812 msg = S.BuildClassMessageImplicit(receiverType, RefExpr->isSuperReceiver(), in buildSet()
833 if (RefExpr->isImplicitProperty() && !RefExpr->getImplicitPropertyGetter()) { in buildRValueOperation()
834 S.Diag(RefExpr->getLocation(), diag::err_getter_not_found) in buildRValueOperation()
835 << RefExpr->getSourceRange(); in buildRValueOperation()
842 if (RefExpr->isExplicitProperty() && !Getter->hasRelatedResultType()) in buildRValueOperation()
843 S.DiagnosePropertyAccessorMismatch(RefExpr->getExplicitProperty(), in buildRValueOperation()
844 Getter, RefExpr->getLocation()); in buildRValueOperation()
848 if (RefExpr->isExplicitProperty() && result.get()->isRValue()) { in buildRValueOperation()
849 QualType receiverType = RefExpr->getReceiverType(S.Context); in buildRValueOperation()
850 QualType propType = RefExpr->getExplicitProperty() in buildRValueOperation()
861 RefExpr->getLocation())) in buildRValueOperation()
862 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
911 << unsigned(RefExpr->isImplicitProperty()) in buildAssignmentOperation()
955 << unsigned(RefExpr->isImplicitProperty()) in buildIncDecOperation()
966 assert(RefExpr->isImplicitProperty()); in buildIncDecOperation()
1034 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1035 InstanceKey = capture(RefExpr->getKeyExpr()); in rebuildAndCaptureObject()
1151 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter()
1160 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexGetter()
1164 RefExpr->getKeyExpr()); in findAtIndexGetter()
1225 RefExpr->getSourceRange(), in findAtIndexGetter()
1233 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1242 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexGetter()
1255 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter()
1265 S.CheckSubscriptingKind(RefExpr->getKeyExpr()); in findAtIndexSetter()
1269 RefExpr->getKeyExpr()); in findAtIndexSetter()
1341 RefExpr->getSourceRange(), in findAtIndexSetter()
1349 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1357 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1369 S.Diag(RefExpr->getKeyExpr()->getExprLoc(), in findAtIndexSetter()
1372 S.Diag(RefExpr->getBaseExpr()->getExprLoc(), in findAtIndexSetter()
1458 InstanceBase = capture(RefExpr->getBaseExpr()); in rebuildAndCaptureObject()
1474 if (!RefExpr->getPropertyDecl()->hasGetter()) { in buildGet()
1475 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildGet()
1476 << 0 /* getter */ << RefExpr->getPropertyDecl(); in buildGet()
1481 IdentifierInfo *II = RefExpr->getPropertyDecl()->getGetterId(); in buildGet()
1482 GetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildGet()
1484 SS.Adopt(RefExpr->getQualifierLoc()); in buildGet()
1487 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildGet()
1490 S.Diag(RefExpr->getMemberLoc(), in buildGet()
1492 << RefExpr->getPropertyDecl(); in buildGet()
1497 RefExpr->getSourceRange().getBegin(), CallArgs, in buildGet()
1498 RefExpr->getSourceRange().getEnd()); in buildGet()
1503 if (!RefExpr->getPropertyDecl()->hasSetter()) { in buildSet()
1504 S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property) in buildSet()
1505 << 1 /* setter */ << RefExpr->getPropertyDecl(); in buildSet()
1510 IdentifierInfo *II = RefExpr->getPropertyDecl()->getSetterId(); in buildSet()
1511 SetterName.setIdentifier(II, RefExpr->getMemberLoc()); in buildSet()
1513 SS.Adopt(RefExpr->getQualifierLoc()); in buildSet()
1516 RefExpr->isArrow() ? tok::arrow : tok::period, SS, in buildSet()
1519 S.Diag(RefExpr->getMemberLoc(), in buildSet()
1521 << RefExpr->getPropertyDecl(); in buildSet()
1529 RefExpr->getSourceRange().getBegin(), ArgExprs, in buildSet()
1552 } else if (MSPropertySubscriptExpr *RefExpr = in checkPseudoObjectRValue() local
1554 MSPropertyOpBuilder Builder(*this, RefExpr, true); in checkPseudoObjectRValue()
1582 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectIncDec() local
1584 MSPropertyOpBuilder Builder(*this, RefExpr, false); in checkPseudoObjectIncDec()
1621 } else if (MSPropertySubscriptExpr *RefExpr in checkPseudoObjectAssignment() local
1623 MSPropertyOpBuilder Builder(*this, RefExpr, IsSimpleAssign); in checkPseudoObjectAssignment()