DeclPtrTy ParseObjCPropertySynthesize(SourceLocation atLoc);
DeclPtrTy ParseObjCPropertyDynamic(SourceLocation atLoc);
- IdentifierInfo *ParseObjCSelector(SourceLocation &MethodLocation);
+ IdentifierInfo *ParseObjCSelectorPiece(SourceLocation &MethodLocation);
// Definitions for Objective-c context sensitive keywords recognition.
enum ObjCTypeQual {
objc_in=0, objc_out, objc_inout, objc_oneway, objc_bycopy, objc_byref,
/// unsigned long const short volatile signed restrict _Complex
/// in out inout bycopy byref oneway int char float double void _Bool
///
-IdentifierInfo *Parser::ParseObjCSelector(SourceLocation &SelectorLoc) {
+IdentifierInfo *Parser::ParseObjCSelectorPiece(SourceLocation &SelectorLoc) {
switch (Tok.getKind()) {
default:
return 0;
ReturnType = ParseObjCTypeName(DSRet);
SourceLocation selLoc;
- IdentifierInfo *SelIdent = ParseObjCSelector(selLoc);
+ IdentifierInfo *SelIdent = ParseObjCSelectorPiece(selLoc);
// An unnamed colon is valid.
if (!SelIdent && Tok.isNot(tok::colon)) { // missing selector name.
// Check for another keyword selector.
SourceLocation Loc;
- SelIdent = ParseObjCSelector(Loc);
+ SelIdent = ParseObjCSelectorPiece(Loc);
if (!SelIdent && Tok.isNot(tok::colon))
break;
// We have a selector or a colon, continue parsing.
ExprArg ReceiverExpr) {
// Parse objc-selector
SourceLocation Loc;
- IdentifierInfo *selIdent = ParseObjCSelector(Loc);
+ IdentifierInfo *selIdent = ParseObjCSelectorPiece(Loc);
SourceLocation SelectorLoc = Loc;
KeyExprs.push_back(Res.release());
// Check for another keyword selector.
- selIdent = ParseObjCSelector(Loc);
+ selIdent = ParseObjCSelectorPiece(Loc);
if (!selIdent && Tok.isNot(tok::colon))
break;
// We have a selector or a colon, continue parsing.
llvm::SmallVector<IdentifierInfo *, 12> KeyIdents;
SourceLocation LParenLoc = ConsumeParen();
SourceLocation sLoc;
- IdentifierInfo *SelIdent = ParseObjCSelector(sLoc);
+ IdentifierInfo *SelIdent = ParseObjCSelectorPiece(sLoc);
if (!SelIdent && Tok.isNot(tok::colon)) // missing selector name.
return ExprError(Diag(Tok, diag::err_expected_ident));
break;
// Check for another keyword selector.
SourceLocation Loc;
- SelIdent = ParseObjCSelector(Loc);
+ SelIdent = ParseObjCSelectorPiece(Loc);
KeyIdents.push_back(SelIdent);
if (!SelIdent && Tok.isNot(tok::colon))
break;