Lines Matching defs:atLoc
35 SourceLocation AtLoc = ConsumeToken(); // the "@"
46 return ParseObjCAtClassDeclaration(AtLoc);
49 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, attrs);
54 return ParseObjCAtProtocolDeclaration(AtLoc, attrs);
57 return ParseObjCAtImplementationDeclaration(AtLoc);
59 return ParseObjCAtEndDeclaration(AtLoc);
61 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc);
64 SingleDecl = ParseObjCPropertySynthesize(AtLoc);
67 SingleDecl = ParseObjCPropertyDynamic(AtLoc);
71 return ParseModuleImport(AtLoc);
76 Diag(AtLoc, diag::err_unexpected_at);
89 Parser::ParseObjCAtClassDeclaration(SourceLocation atLoc) {
115 return Actions.ActOnForwardClassDeclaration(atLoc, ClassNames.data(),
120 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc)
128 CurParsedObjCImpl->finish(AtLoc);
130 Actions.ActOnAtEnd(getCurScope(), AtLoc);
132 Diag(AtLoc, diag::err_objc_missing_end)
133 << FixItHint::CreateInsertion(AtLoc, "@end\n");
168 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
172 CheckNestedObjCContexts(AtLoc);
233 Actions.ActOnStartCategoryInterface(AtLoc,
242 ParseObjCClassInstanceVariables(CategoryType, tok::objc_private, AtLoc);
278 Actions.ActOnStartClassInterface(AtLoc, nameId, nameLoc,
285 ParseObjCClassInstanceVariables(ClsType, tok::objc_protected, AtLoc);
300 SourceLocation AtLoc;
306 ObjCDeclSpec &OCDS, SourceLocation AtLoc,
309 P(P), Props(Props), OCDS(OCDS), AtLoc(AtLoc), LParenLoc(LParenLoc),
315 P.Diag(AtLoc, diag::err_objc_property_requires_field_name)
320 P.Diag(AtLoc, diag::err_objc_property_bitfield)
341 P.Actions.ActOnProperty(P.getCurScope(), AtLoc, LParenLoc,
431 SourceLocation AtLoc = ConsumeToken(); // the "@"
440 AtEnd.setBegin(AtLoc);
458 Diag(AtLoc, diag::err_objc_illegal_interface_qual);
465 Diag(AtLoc, diag::err_objc_missing_end)
466 << FixItHint::CreateInsertion(AtLoc, "@end\n");
477 Diag(AtLoc, diag::err_objc_directive_only_in_protocol);
484 Diag(AtLoc, diag::err_objc_properties_require_objc2);
495 OCDS, AtLoc, LParenLoc, MethodImplKind);
1254 SourceLocation atLoc) {
1347 Actions.ActOnFields(getCurScope(), atLoc, interfaceDecl,
1370 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc,
1393 return Actions.ActOnForwardProtocolDeclaration(AtLoc, &ProtoInfo, 1,
1397 CheckNestedObjCContexts(AtLoc);
1422 return Actions.ActOnForwardProtocolDeclaration(AtLoc,
1439 Actions.ActOnStartProtocolInterface(AtLoc, protocolName, nameLoc,
1460 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc) {
1463 CheckNestedObjCContexts(AtLoc);
1508 AtLoc, nameId, nameLoc, categoryId,
1526 AtLoc, nameId, nameLoc,
1530 ParseObjCClassInstanceVariables(ObjCImpDecl, tok::objc_private, AtLoc);
1606 Decl *Parser::ParseObjCAtAliasDeclaration(SourceLocation atLoc) {
1624 return Actions.ActOnCompatibilityAlias(atLoc, aliasId, aliasLoc,
1639 Decl *Parser::ParseObjCPropertySynthesize(SourceLocation atLoc) {
1678 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, true,
1695 Decl *Parser::ParseObjCPropertyDynamic(SourceLocation atLoc) {
1714 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, false,
1728 StmtResult Parser::ParseObjCThrowStmt(SourceLocation atLoc) {
1740 return Actions.ActOnObjCAtThrowStmt(atLoc, Res.take(), getCurScope());
1747 Parser::ParseObjCSynchronizedStmt(SourceLocation atLoc) {
1777 operand = Actions.ActOnObjCAtSynchronizedOperand(atLoc, operand.take());
1792 return Actions.ActOnObjCAtSynchronizedStmt(atLoc, operand.get(), body.get());
1806 StmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
1897 Diag(atLoc, diag::err_missing_catch_finally);
1901 return Actions.ActOnObjCAtTryStmt(atLoc, TryBody.take(),
1910 Parser::ParseObjCAutoreleasePoolStmt(SourceLocation atLoc) {
1925 return Actions.ActOnObjCAutoreleasePoolStmt(atLoc,
2010 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc) {
2018 return ParseObjCTryStmt(AtLoc);
2021 return ParseObjCThrowStmt(AtLoc);
2024 return ParseObjCSynchronizedStmt(AtLoc);
2027 return ParseObjCAutoreleasePoolStmt(AtLoc);
2029 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc));
2043 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) {
2078 Actions.BuildObjCNumericLiteral(AtLoc, Lit.take()));
2083 return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc));
2086 return ParsePostfixExpressionSuffix(ParseObjCCharacterLiteral(AtLoc));
2089 return ParsePostfixExpressionSuffix(ParseObjCNumericLiteral(AtLoc));
2093 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, true));
2096 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, false));
2100 return ParsePostfixExpressionSuffix(ParseObjCArrayLiteral(AtLoc));
2104 return ParsePostfixExpressionSuffix(ParseObjCDictionaryLiteral(AtLoc));
2108 return ParsePostfixExpressionSuffix(ParseObjCBoxedExpr(AtLoc));
2112 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2116 return ParsePostfixExpressionSuffix(ParseObjCEncodeExpression(AtLoc));
2118 return ParsePostfixExpressionSuffix(ParseObjCProtocolExpression(AtLoc));
2120 return ParsePostfixExpressionSuffix(ParseObjCSelectorExpression(AtLoc));
2132 return ExprError(Diag(AtLoc, diag::err_unexpected_at) <<
2136 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2567 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) {
2576 AtLocs.push_back(AtLoc);
2602 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc,
2605 return Actions.ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue);
2611 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) {
2617 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.take());
2625 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) {
2631 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.take());
2638 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) {
2655 return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc),
2659 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) {
2689 return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args);
2692 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) {
2745 return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc),
2752 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) {
2770 return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(),
2777 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) {
2794 return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc,
2801 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) {
2857 return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc,