Lines Matching refs:AtLoc

56   SourceLocation AtLoc = ConsumeToken(); // the "@"  in ParseObjCAtDirectives()  local
79 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
81 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
84 return ParseObjCAtProtocolDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
86 return ParseObjCAtImplementationDeclaration(AtLoc, DeclAttrs); in ParseObjCAtDirectives()
88 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
90 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
93 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
96 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
101 SingleDecl = ParseModuleImport(AtLoc, IS); in ParseObjCAtDirectives()
104 Diag(AtLoc, diag::err_atimport); in ParseObjCAtDirectives()
108 Diag(AtLoc, diag::err_unexpected_at); in ParseObjCAtDirectives()
189 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc) in CheckNestedObjCContexts() argument
197 CurParsedObjCImpl->finish(AtLoc); in CheckNestedObjCContexts()
199 Actions.ObjC().ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
201 Diag(AtLoc, diag::err_objc_missing_end) in CheckNestedObjCContexts()
202 << FixItHint::CreateInsertion(AtLoc, "@end\n"); in CheckNestedObjCContexts()
236 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc, in ParseObjCAtInterfaceDeclaration() argument
240 CheckNestedObjCContexts(AtLoc); in ParseObjCAtInterfaceDeclaration()
311 AtLoc, nameId, nameLoc, typeParameterList, categoryId, categoryLoc, in ParseObjCAtInterfaceDeclaration()
316 ParseObjCClassInstanceVariables(CategoryType, tok::objc_private, AtLoc); in ParseObjCAtInterfaceDeclaration()
383 getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId, in ParseObjCAtInterfaceDeclaration()
389 ParseObjCClassInstanceVariables(ClsType, tok::objc_protected, AtLoc); in ParseObjCAtInterfaceDeclaration()
724 SourceLocation AtLoc = Tok.getLocation(); in ParseObjCInterfaceDeclList() local
735 AtEnd.setBegin(AtLoc); in ParseObjCInterfaceDeclList()
759 Diag(AtLoc, diag::err_objc_illegal_interface_qual); in ParseObjCInterfaceDeclList()
768 Diag(AtLoc, diag::err_objc_directive_only_in_protocol); in ParseObjCInterfaceDeclList()
785 Diag(AtLoc, diag::err_objc_property_requires_field_name) in ParseObjCInterfaceDeclList()
790 Diag(AtLoc, diag::err_objc_property_bitfield) in ParseObjCInterfaceDeclList()
817 getCurScope(), AtLoc, LParenLoc, FD, OCDS, GetterSel, SetterSel, in ParseObjCInterfaceDeclList()
2064 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc, in ParseObjCAtProtocolDeclaration() argument
2086 return Actions.ObjC().ActOnForwardProtocolDeclaration(AtLoc, ProtoInfo, in ParseObjCAtProtocolDeclaration()
2090 CheckNestedObjCContexts(AtLoc); in ParseObjCAtProtocolDeclaration()
2114 return Actions.ObjC().ActOnForwardProtocolDeclaration(AtLoc, ProtocolRefs, in ParseObjCAtProtocolDeclaration()
2131 AtLoc, protocolName, nameLoc, ProtocolRefs.data(), ProtocolRefs.size(), in ParseObjCAtProtocolDeclaration()
2160 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc, in ParseObjCAtImplementationDeclaration() argument
2164 CheckNestedObjCContexts(AtLoc); in ParseObjCAtImplementationDeclaration()
2239 AtLoc, nameId, nameLoc, categoryId, categoryLoc, Attrs); in ParseObjCAtImplementationDeclaration()
2253 AtLoc, nameId, nameLoc, superClassId, superClassLoc, Attrs); in ParseObjCAtImplementationDeclaration()
2256 ParseObjCClassInstanceVariables(ObjCImpDecl, tok::objc_private, AtLoc); in ParseObjCAtImplementationDeclaration()
2798 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc, in ParseObjCAtStatement() argument
2807 return ParseObjCTryStmt(AtLoc); in ParseObjCAtStatement()
2810 return ParseObjCThrowStmt(AtLoc); in ParseObjCAtStatement()
2813 return ParseObjCSynchronizedStmt(AtLoc); in ParseObjCAtStatement()
2816 return ParseObjCAutoreleasePoolStmt(AtLoc); in ParseObjCAtStatement()
2824 ExprStatementTokLoc = AtLoc; in ParseObjCAtStatement()
2825 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc)); in ParseObjCAtStatement()
2839 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { in ParseObjCAtExpression() argument
2874 Actions.ObjC().BuildObjCNumericLiteral(AtLoc, Lit.get())); in ParseObjCAtExpression()
2879 return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc)); in ParseObjCAtExpression()
2882 return ParsePostfixExpressionSuffix(ParseObjCCharacterLiteral(AtLoc)); in ParseObjCAtExpression()
2885 return ParsePostfixExpressionSuffix(ParseObjCNumericLiteral(AtLoc)); in ParseObjCAtExpression()
2889 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, true)); in ParseObjCAtExpression()
2892 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, false)); in ParseObjCAtExpression()
2896 return ParsePostfixExpressionSuffix(ParseObjCArrayLiteral(AtLoc)); in ParseObjCAtExpression()
2900 return ParsePostfixExpressionSuffix(ParseObjCDictionaryLiteral(AtLoc)); in ParseObjCAtExpression()
2904 return ParsePostfixExpressionSuffix(ParseObjCBoxedExpr(AtLoc)); in ParseObjCAtExpression()
2908 return ExprError(Diag(AtLoc, diag::err_unexpected_at)); in ParseObjCAtExpression()
2912 return ParsePostfixExpressionSuffix(ParseObjCEncodeExpression(AtLoc)); in ParseObjCAtExpression()
2914 return ParsePostfixExpressionSuffix(ParseObjCProtocolExpression(AtLoc)); in ParseObjCAtExpression()
2916 return ParsePostfixExpressionSuffix(ParseObjCSelectorExpression(AtLoc)); in ParseObjCAtExpression()
2918 return ParseAvailabilityCheckExpr(AtLoc); in ParseObjCAtExpression()
2925 ExprStatementTokLoc == AtLoc) { in ParseObjCAtExpression()
2934 return ExprError(Diag(AtLoc, diag::err_unexpected_at) << in ParseObjCAtExpression()
2938 return ExprError(Diag(AtLoc, diag::err_unexpected_at)); in ParseObjCAtExpression()
3386 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) { in ParseObjCStringLiteral() argument
3395 AtLocs.push_back(AtLoc); in ParseObjCStringLiteral()
3420 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc, in ParseObjCBooleanLiteral() argument
3423 return Actions.ObjC().ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue); in ParseObjCBooleanLiteral()
3429 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) { in ParseObjCCharacterLiteral() argument
3435 return Actions.ObjC().BuildObjCNumericLiteral(AtLoc, Lit.get()); in ParseObjCCharacterLiteral()
3443 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) { in ParseObjCNumericLiteral() argument
3449 return Actions.ObjC().BuildObjCNumericLiteral(AtLoc, Lit.get()); in ParseObjCNumericLiteral()
3456 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) { in ParseObjCBoxedExpr() argument
3473 return Actions.ObjC().BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc), in ParseObjCBoxedExpr()
3477 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) { in ParseObjCArrayLiteral() argument
3517 return Actions.ObjC().BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args); in ParseObjCArrayLiteral()
3520 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) { in ParseObjCDictionaryLiteral() argument
3582 return Actions.ObjC().BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc), in ParseObjCDictionaryLiteral()
3589 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) { in ParseObjCEncodeExpression() argument
3608 AtLoc, EncLoc, T.getOpenLocation(), Ty.get(), T.getCloseLocation()); in ParseObjCEncodeExpression()
3614 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) { in ParseObjCProtocolExpression() argument
3632 protocolId, AtLoc, ProtoLoc, T.getOpenLocation(), ProtoIdLoc, in ParseObjCProtocolExpression()
3638 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) { in ParseObjCSelectorExpression() argument
3699 Sel, AtLoc, SelectorLoc, T.getOpenLocation(), T.getCloseLocation(), in ParseObjCSelectorExpression()