Lines Matching refs:AtLoc

47   SourceLocation AtLoc = ConsumeToken(); // the "@"  in ParseObjCAtDirectives()  local
58 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
61 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, attrs); in ParseObjCAtDirectives()
66 return ParseObjCAtProtocolDeclaration(AtLoc, attrs); in ParseObjCAtDirectives()
69 return ParseObjCAtImplementationDeclaration(AtLoc); in ParseObjCAtDirectives()
71 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
73 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
76 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
79 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
83 return ParseModuleImport(AtLoc); in ParseObjCAtDirectives()
84 Diag(AtLoc, diag::err_atimport); in ParseObjCAtDirectives()
88 Diag(AtLoc, diag::err_unexpected_at); in ParseObjCAtDirectives()
131 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc) in CheckNestedObjCContexts() argument
139 CurParsedObjCImpl->finish(AtLoc); in CheckNestedObjCContexts()
141 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
143 Diag(AtLoc, diag::err_objc_missing_end) in CheckNestedObjCContexts()
144 << FixItHint::CreateInsertion(AtLoc, "@end\n"); in CheckNestedObjCContexts()
179 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc, in ParseObjCAtInterfaceDeclaration() argument
183 CheckNestedObjCContexts(AtLoc); in ParseObjCAtInterfaceDeclaration()
248 Actions.ActOnStartCategoryInterface(AtLoc, in ParseObjCAtInterfaceDeclaration()
257 ParseObjCClassInstanceVariables(CategoryType, tok::objc_private, AtLoc); in ParseObjCAtInterfaceDeclaration()
297 Actions.ActOnStartClassInterface(AtLoc, nameId, nameLoc, in ParseObjCAtInterfaceDeclaration()
304 ParseObjCClassInstanceVariables(ClsType, tok::objc_protected, AtLoc); in ParseObjCAtInterfaceDeclaration()
385 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCInterfaceDeclList() local
394 AtEnd.setBegin(AtLoc); in ParseObjCInterfaceDeclList()
412 Diag(AtLoc, diag::err_objc_illegal_interface_qual); in ParseObjCInterfaceDeclList()
419 Diag(AtLoc, diag::err_objc_missing_end) in ParseObjCInterfaceDeclList()
420 << FixItHint::CreateInsertion(AtLoc, "@end\n"); in ParseObjCInterfaceDeclList()
431 Diag(AtLoc, diag::err_objc_directive_only_in_protocol); in ParseObjCInterfaceDeclList()
438 Diag(AtLoc, diag::err_objc_properties_require_objc2); in ParseObjCInterfaceDeclList()
450 Diag(AtLoc, diag::err_objc_property_requires_field_name) in ParseObjCInterfaceDeclList()
455 Diag(AtLoc, diag::err_objc_property_bitfield) in ParseObjCInterfaceDeclList()
475 getCurScope(), AtLoc, LParenLoc, FD, OCDS, GetterSel, SetterSel, in ParseObjCInterfaceDeclList()
1354 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc, in ParseObjCAtProtocolDeclaration() argument
1378 return Actions.ActOnForwardProtocolDeclaration(AtLoc, &ProtoInfo, 1, in ParseObjCAtProtocolDeclaration()
1382 CheckNestedObjCContexts(AtLoc); in ParseObjCAtProtocolDeclaration()
1407 return Actions.ActOnForwardProtocolDeclaration(AtLoc, in ParseObjCAtProtocolDeclaration()
1424 Actions.ActOnStartProtocolInterface(AtLoc, protocolName, nameLoc, in ParseObjCAtProtocolDeclaration()
1445 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc) { in ParseObjCAtImplementationDeclaration() argument
1448 CheckNestedObjCContexts(AtLoc); in ParseObjCAtImplementationDeclaration()
1503 AtLoc, nameId, nameLoc, categoryId, in ParseObjCAtImplementationDeclaration()
1521 AtLoc, nameId, nameLoc, in ParseObjCAtImplementationDeclaration()
1525 ParseObjCClassInstanceVariables(ObjCImpDecl, tok::objc_private, AtLoc); in ParseObjCAtImplementationDeclaration()
2009 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc) { in ParseObjCAtStatement() argument
2017 return ParseObjCTryStmt(AtLoc); in ParseObjCAtStatement()
2020 return ParseObjCThrowStmt(AtLoc); in ParseObjCAtStatement()
2023 return ParseObjCSynchronizedStmt(AtLoc); in ParseObjCAtStatement()
2026 return ParseObjCAutoreleasePoolStmt(AtLoc); in ParseObjCAtStatement()
2034 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc)); in ParseObjCAtStatement()
2048 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { in ParseObjCAtExpression() argument
2083 Actions.BuildObjCNumericLiteral(AtLoc, Lit.get())); in ParseObjCAtExpression()
2088 return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc)); in ParseObjCAtExpression()
2091 return ParsePostfixExpressionSuffix(ParseObjCCharacterLiteral(AtLoc)); in ParseObjCAtExpression()
2094 return ParsePostfixExpressionSuffix(ParseObjCNumericLiteral(AtLoc)); in ParseObjCAtExpression()
2098 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, true)); in ParseObjCAtExpression()
2101 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, false)); in ParseObjCAtExpression()
2105 return ParsePostfixExpressionSuffix(ParseObjCArrayLiteral(AtLoc)); in ParseObjCAtExpression()
2109 return ParsePostfixExpressionSuffix(ParseObjCDictionaryLiteral(AtLoc)); in ParseObjCAtExpression()
2113 return ParsePostfixExpressionSuffix(ParseObjCBoxedExpr(AtLoc)); in ParseObjCAtExpression()
2117 return ExprError(Diag(AtLoc, diag::err_unexpected_at)); in ParseObjCAtExpression()
2121 return ParsePostfixExpressionSuffix(ParseObjCEncodeExpression(AtLoc)); in ParseObjCAtExpression()
2123 return ParsePostfixExpressionSuffix(ParseObjCProtocolExpression(AtLoc)); in ParseObjCAtExpression()
2125 return ParsePostfixExpressionSuffix(ParseObjCSelectorExpression(AtLoc)); in ParseObjCAtExpression()
2137 return ExprError(Diag(AtLoc, diag::err_unexpected_at) << in ParseObjCAtExpression()
2141 return ExprError(Diag(AtLoc, diag::err_unexpected_at)); in ParseObjCAtExpression()
2574 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) { in ParseObjCStringLiteral() argument
2583 AtLocs.push_back(AtLoc); in ParseObjCStringLiteral()
2609 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc, in ParseObjCBooleanLiteral() argument
2612 return Actions.ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue); in ParseObjCBooleanLiteral()
2618 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) { in ParseObjCCharacterLiteral() argument
2624 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get()); in ParseObjCCharacterLiteral()
2632 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) { in ParseObjCNumericLiteral() argument
2638 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get()); in ParseObjCNumericLiteral()
2645 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) { in ParseObjCBoxedExpr() argument
2662 return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc), in ParseObjCBoxedExpr()
2666 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) { in ParseObjCArrayLiteral() argument
2697 return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args); in ParseObjCArrayLiteral()
2700 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) { in ParseObjCDictionaryLiteral() argument
2751 return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc), in ParseObjCDictionaryLiteral()
2758 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) { in ParseObjCEncodeExpression() argument
2776 return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(), in ParseObjCEncodeExpression()
2783 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) { in ParseObjCProtocolExpression() argument
2800 return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc, in ParseObjCProtocolExpression()
2807 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) { in ParseObjCSelectorExpression() argument
2866 return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc, in ParseObjCSelectorExpression()