Lines Matching refs:Sel

164   Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind,
198 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel);;
202 Method = ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel,
217 S.Diag(Loc, diag::err_undeclared_nsnumber_method) << Sel;
224 << Sel;
589 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount);
590 ArrayWithObjectsMethod = NSArrayDecl->lookupClassMethod(Sel);
595 SourceLocation(), SourceLocation(), Sel,
630 Diag(SR.getBegin(), diag::err_undeclared_arraywithobjects) << Sel;
722 Selector Sel = NSAPIObj->getNSDictionarySelector(
724 DictionaryWithObjectsMethod = NSDictionaryDecl->lookupClassMethod(Sel);
728 SourceLocation(), SourceLocation(), Sel,
770 Diag(SR.getBegin(), diag::err_undeclared_dictwithobjects) << Sel;
942 ExprResult Sema::ParseObjCSelectorExpression(Selector Sel,
947 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel,
950 Method = LookupFactoryMethodInGlobalPool(Sel,
953 Diag(SelLoc, diag::warn_undeclared_selector) << Sel;
958 = ReferencedSelectors.find(Sel);
960 ReferencedSelectors.insert(std::make_pair(Sel, SelLoc));
966 switch (Sel.getMethodFamily()) {
973 Sel << SourceRange(LParenLoc, RParenLoc);
989 return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc);
1101 Selector Sel, ObjCMethodDecl *Method,
1125 << Sel << isClassMessage << SourceRange(lbrac, rbrac);
1142 unsigned NumNamedArgs = Sel.getNumArgs();
1145 if (Method->param_size() > Sel.getNumArgs())
1233 ObjCMethodDecl *Sema::LookupPrivateClassMethod(Selector Sel,
1239 Method = ImpDecl->getClassMethod(Sel);
1243 Method = ClassDecl->getCategoryClassMethod(Sel);
1249 Method = ClassDecl->lookupInstanceMethod(Sel);
1253 Method = LookupPrivateInstanceMethod(Sel, ClassDecl);
1261 ObjCMethodDecl *Sema::LookupPrivateInstanceMethod(Selector Sel,
1270 Method = ImpDecl->getInstanceMethod(Sel);
1274 Method = ClassDecl->getCategoryInstanceMethod(Sel);
1311 ObjCMethodDecl *Sema::LookupMethodInQualifiedType(Selector Sel,
1319 if ((MD = PROTO->lookupMethod(Sel, Instance))) {
1397 Selector Sel = PP.getSelectorTable().getNullarySelector(Member);
1398 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel);
1402 Getter = LookupMethodInQualifiedType(Sel, OPT, true);
1406 Getter = IFace->lookupPrivateMethod(Sel);
1410 Getter = IFace->getCategoryInstanceMethod(Sel);
1543 Selector Sel = PP.getSelectorTable().getNullarySelector(&propertyName);
1544 ObjCMethodDecl *Getter = IFace->lookupClassMethod(Sel);
1551 Getter = ImpDecl->getClassMethod(Sel);
1722 Selector Sel,
1752 if (Sel.getMethodFamily() == OMF_dealloc)
1754 if (Sel.getMethodFamily() == OMF_finalize)
1762 Sel, /*Method=*/0,
1770 SuperLoc, Sel, /*Method=*/0,
1778 Selector Sel,
1787 Sel, Method, Loc, Loc, Loc, Args,
1854 /// \param Sel The selector to which the message is being sent.
1867 Selector Sel,
1890 Sel, SelectorLocs, /*Method=*/0,
1918 Method = LookupFactoryMethodInGlobalPool(Sel,
1925 Method = Class->lookupClassMethod(Sel);
1929 Method = LookupPrivateClassMethod(Sel, Class);
1941 if (CheckMessageArgumentTypes(ReceiverType, Args, NumArgs, Sel, Method, true,
1956 ReceiverType, Sel, SelectorLocs,
1961 ReceiverTypeInfo, Sel, SelectorLocs,
1972 // is obtained from Sel.getNumArgs().
1975 Selector Sel,
1990 /*SuperLoc=*/SourceLocation(), Sel, /*Method=*/0,
1997 Selector Sel,
2002 Sel, Method, Loc, Loc, Loc, Args,
2024 /// \param Sel The selector to which the message is being sent.
2037 Selector Sel,
2073 VK_RValue, LBracLoc, Receiver, Sel,
2093 Method = LookupInstanceMethodInGlobalPool(Sel,
2097 Method = LookupFactoryMethodInGlobalPool(Sel,
2108 Method = LookupMethodInQualifiedType(Sel, QClassTy, false);
2110 Method = LookupMethodInQualifiedType(Sel, QClassTy, true);
2114 << Method->getSelector() << Sel;
2123 Method = ClassDecl->lookupClassMethod(Sel);
2126 Method = LookupPrivateClassMethod(Sel, ClassDecl);
2132 // If not messaging 'self', look for any factory method named 'Sel'.
2134 Method = LookupFactoryMethodInGlobalPool(Sel,
2140 Method = LookupInstanceMethodInGlobalPool(Sel,
2148 << Sel << SourceRange(LBracLoc, RBracLoc);
2162 Method = LookupMethodInQualifiedType(Sel, QIdTy, true);
2164 Method = LookupMethodInQualifiedType(Sel, QIdTy, false);
2189 Method = ClassDecl->lookupInstanceMethod(Sel);
2194 Method = LookupMethodInQualifiedType(Sel, OCIType, true);
2198 Method = LookupPrivateInstanceMethod(Sel, ClassDecl);
2202 << OCIType->getPointeeType() << Sel;
2211 Method = LookupInstanceMethodInGlobalPool(Sel,
2215 << OCIType->getInterfaceDecl()->getIdentifier() << Sel;
2250 Sel,
2273 if (CheckMessageArgumentTypes(ReceiverType, Args, NumArgs, Sel, Method,
2289 (Method ? Method->getMethodFamily() : Sel.getMethodFamily());
2310 << Sel << SelLoc;
2369 ReceiverType, Sel, SelectorLocs, Method,
2374 Receiver, Sel, SelectorLocs, Method,
2411 // is obtained from Sel.getNumArgs().
2414 Selector Sel,
2423 /*SuperLoc=*/SourceLocation(), Sel, /*Method=*/0,