Lines Matching defs:Sel

147                                  Selector Sel, const ObjCMethodDecl *Method) {
150 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
158 << Sel;
188 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind,
224 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel);
228 Method = ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel,
245 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method))
639 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount);
640 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel);
644 SourceLocation(), SourceLocation(), Sel,
671 if (!validateBoxingMethod(*this, SR.getBegin(), NSArrayDecl, Sel, Method))
680 << Sel;
691 << Sel;
755 Selector Sel = NSAPIObj->getNSDictionarySelector(
757 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel);
760 SourceLocation(), SourceLocation(), Sel,
794 if (!validateBoxingMethod(*this, SR.getBegin(), NSDictionaryDecl, Sel,
804 << Sel;
838 << Sel;
851 << Sel;
961 ExprResult Sema::ParseObjCSelectorExpression(Selector Sel,
966 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel,
969 Method = LookupFactoryMethodInGlobalPool(Sel,
972 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) {
977 << Sel << MatchedSel
981 Diag(SelLoc, diag::warn_undeclared_selector) << Sel;
987 = ReferencedSelectors.find(Sel);
989 ReferencedSelectors.insert(std::make_pair(Sel, AtLoc));
995 switch (Sel.getMethodFamily()) {
1002 Sel << SourceRange(LParenLoc, RParenLoc);
1018 return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc);
1198 Selector Sel,
1235 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType);
1245 << Sel<< isClassMessage << MatchedSel
1250 << Sel << isClassMessage << SourceRange(SelectorLocs.front(),
1275 unsigned NumNamedArgs = Sel.getNumArgs();
1278 if (Method->param_size() > Sel.getNumArgs())
1406 ObjCMethodDecl *Sema::LookupMethodInQualifiedType(Selector Sel,
1414 if ((MD = PROTO->lookupMethod(Sel, Instance))) {
1550 Selector Sel = PP.getSelectorTable().getNullarySelector(Member);
1551 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel);
1555 Getter = LookupMethodInQualifiedType(Sel, OPT, true);
1559 Getter = IFace->lookupPrivateMethod(Sel);
1697 Selector Sel = PP.getSelectorTable().getNullarySelector(&propertyName);
1698 ObjCMethodDecl *Getter = IFace->lookupClassMethod(Sel);
1705 Getter = ImpDecl->getClassMethod(Sel);
1879 Selector Sel,
1908 if (Method->getSelector() == Sel)
1917 Sel, /*Method=*/0,
1925 SuperLoc, Sel, /*Method=*/0,
1933 Selector Sel,
1942 Sel, Method, Loc, Loc, Loc, Args,
2009 /// \param Sel The selector to which the message is being sent.
2022 Selector Sel,
2050 Sel, SelectorLocs, /*Method=*/0,
2078 Method = LookupFactoryMethodInGlobalPool(Sel,
2085 Method = Class->lookupClassMethod(Sel);
2089 Method = Class->lookupPrivateClassMethod(Sel);
2102 Sel, SelectorLocs,
2118 ReceiverType, Sel, SelectorLocs,
2123 ReceiverTypeInfo, Sel, SelectorLocs,
2134 // is obtained from Sel.getNumArgs().
2137 Selector Sel,
2152 /*SuperLoc=*/SourceLocation(), Sel, /*Method=*/0,
2159 Selector Sel,
2164 Sel, Method, Loc, Loc, Loc, Args,
2186 /// \param Sel The selector to which the message is being sent.
2199 Selector Sel,
2242 VK_RValue, LBracLoc, Receiver, Sel,
2300 Method = LookupInstanceMethodInGlobalPool(Sel,
2304 Method = LookupFactoryMethodInGlobalPool(Sel,
2315 Method = LookupMethodInQualifiedType(Sel, QClassTy, false);
2317 Method = LookupMethodInQualifiedType(Sel, QClassTy, true);
2321 << Method->getSelector() << Sel;
2330 Method = ClassDecl->lookupClassMethod(Sel);
2333 Method = ClassDecl->lookupPrivateClassMethod(Sel);
2339 // If not messaging 'self', look for any factory method named 'Sel'.
2341 Method = LookupFactoryMethodInGlobalPool(Sel,
2347 Method = LookupInstanceMethodInGlobalPool(Sel,
2355 << Sel << SourceRange(LBracLoc, RBracLoc);
2370 Method = LookupMethodInQualifiedType(Sel, QIdTy, true);
2372 Method = LookupMethodInQualifiedType(Sel, QIdTy, false);
2397 Method = ClassDecl->lookupInstanceMethod(Sel);
2402 Method = LookupMethodInQualifiedType(Sel, OCIType, true);
2406 Method = ClassDecl->lookupPrivateMethod(Sel);
2410 << OCIType->getPointeeType() << Sel << RecRange
2420 Method = LookupInstanceMethodInGlobalPool(Sel,
2425 << Sel << RecRange;
2448 Sel, SelectorLocs, Method,
2462 (Method ? Method->getMethodFamily() : Sel.getMethodFamily());
2483 << Sel << RecRange;
2542 ReceiverType, Sel, SelectorLocs, Method,
2547 Receiver, Sel, SelectorLocs, Method,
2579 if (!IsWeak && Sel.isUnarySelector())
2600 Selector Sel = OSE->getSelector();
2603 = S.ReferencedSelectors.find(Sel);
2611 // is obtained from Sel.getNumArgs().
2614 Selector Sel,
2633 if (Sel == RespondsToSelectorSel)
2637 /*SuperLoc=*/SourceLocation(), Sel, /*Method=*/0,