Lines Matching refs:AtLoc
50 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCAtDirectives() local
61 return ParseObjCAtClassDeclaration(AtLoc); in ParseObjCAtDirectives()
63 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, Attrs); in ParseObjCAtDirectives()
66 return ParseObjCAtProtocolDeclaration(AtLoc, Attrs); in ParseObjCAtDirectives()
68 return ParseObjCAtImplementationDeclaration(AtLoc, Attrs); in ParseObjCAtDirectives()
70 return ParseObjCAtEndDeclaration(AtLoc); in ParseObjCAtDirectives()
72 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc); in ParseObjCAtDirectives()
75 SingleDecl = ParseObjCPropertySynthesize(AtLoc); in ParseObjCAtDirectives()
78 SingleDecl = ParseObjCPropertyDynamic(AtLoc); in ParseObjCAtDirectives()
82 SingleDecl = ParseModuleImport(AtLoc); in ParseObjCAtDirectives()
85 Diag(AtLoc, diag::err_atimport); in ParseObjCAtDirectives()
89 Diag(AtLoc, diag::err_unexpected_at); in ParseObjCAtDirectives()
166 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc) in CheckNestedObjCContexts() argument
174 CurParsedObjCImpl->finish(AtLoc); in CheckNestedObjCContexts()
176 Actions.ActOnAtEnd(getCurScope(), AtLoc); in CheckNestedObjCContexts()
178 Diag(AtLoc, diag::err_objc_missing_end) in CheckNestedObjCContexts()
179 << FixItHint::CreateInsertion(AtLoc, "@end\n"); in CheckNestedObjCContexts()
213 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc, in ParseObjCAtInterfaceDeclaration() argument
217 CheckNestedObjCContexts(AtLoc); in ParseObjCAtInterfaceDeclaration()
287 AtLoc, nameId, nameLoc, typeParameterList, categoryId, categoryLoc, in ParseObjCAtInterfaceDeclaration()
292 ParseObjCClassInstanceVariables(CategoryType, tok::objc_private, AtLoc); in ParseObjCAtInterfaceDeclaration()
357 getCurScope(), AtLoc, nameId, nameLoc, typeParameterList, superClassId, in ParseObjCAtInterfaceDeclaration()
363 ParseObjCClassInstanceVariables(ClsType, tok::objc_protected, AtLoc); in ParseObjCAtInterfaceDeclaration()
670 SourceLocation AtLoc = ConsumeToken(); // the "@" in ParseObjCInterfaceDeclList() local
680 AtEnd.setBegin(AtLoc); in ParseObjCInterfaceDeclList()
698 Diag(AtLoc, diag::err_objc_illegal_interface_qual); in ParseObjCInterfaceDeclList()
705 Diag(AtLoc, diag::err_objc_missing_end) in ParseObjCInterfaceDeclList()
706 << FixItHint::CreateInsertion(AtLoc, "@end\n"); in ParseObjCInterfaceDeclList()
716 Diag(AtLoc, diag::err_objc_directive_only_in_protocol); in ParseObjCInterfaceDeclList()
733 Diag(AtLoc, diag::err_objc_property_requires_field_name) in ParseObjCInterfaceDeclList()
738 Diag(AtLoc, diag::err_objc_property_bitfield) in ParseObjCInterfaceDeclList()
765 getCurScope(), AtLoc, LParenLoc, FD, OCDS, GetterSel, SetterSel, in ParseObjCInterfaceDeclList()
2021 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc, in ParseObjCAtProtocolDeclaration() argument
2043 return Actions.ActOnForwardProtocolDeclaration(AtLoc, ProtoInfo, attrs); in ParseObjCAtProtocolDeclaration()
2046 CheckNestedObjCContexts(AtLoc); in ParseObjCAtProtocolDeclaration()
2070 return Actions.ActOnForwardProtocolDeclaration(AtLoc, ProtocolRefs, attrs); in ParseObjCAtProtocolDeclaration()
2085 AtLoc, protocolName, nameLoc, ProtocolRefs.data(), ProtocolRefs.size(), in ParseObjCAtProtocolDeclaration()
2103 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc, in ParseObjCAtImplementationDeclaration() argument
2107 CheckNestedObjCContexts(AtLoc); in ParseObjCAtImplementationDeclaration()
2181 AtLoc, nameId, nameLoc, categoryId, categoryLoc, Attrs); in ParseObjCAtImplementationDeclaration()
2195 AtLoc, nameId, nameLoc, superClassId, superClassLoc, Attrs); in ParseObjCAtImplementationDeclaration()
2198 ParseObjCClassInstanceVariables(ObjCImpDecl, tok::objc_private, AtLoc); in ParseObjCAtImplementationDeclaration()
2732 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc, in ParseObjCAtStatement() argument
2741 return ParseObjCTryStmt(AtLoc); in ParseObjCAtStatement()
2744 return ParseObjCThrowStmt(AtLoc); in ParseObjCAtStatement()
2747 return ParseObjCSynchronizedStmt(AtLoc); in ParseObjCAtStatement()
2750 return ParseObjCAutoreleasePoolStmt(AtLoc); in ParseObjCAtStatement()
2758 ExprStatementTokLoc = AtLoc; in ParseObjCAtStatement()
2759 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc)); in ParseObjCAtStatement()
2773 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { in ParseObjCAtExpression() argument
2808 Actions.BuildObjCNumericLiteral(AtLoc, Lit.get())); in ParseObjCAtExpression()
2813 return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc)); in ParseObjCAtExpression()
2816 return ParsePostfixExpressionSuffix(ParseObjCCharacterLiteral(AtLoc)); in ParseObjCAtExpression()
2819 return ParsePostfixExpressionSuffix(ParseObjCNumericLiteral(AtLoc)); in ParseObjCAtExpression()
2823 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, true)); in ParseObjCAtExpression()
2826 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, false)); in ParseObjCAtExpression()
2830 return ParsePostfixExpressionSuffix(ParseObjCArrayLiteral(AtLoc)); in ParseObjCAtExpression()
2834 return ParsePostfixExpressionSuffix(ParseObjCDictionaryLiteral(AtLoc)); in ParseObjCAtExpression()
2838 return ParsePostfixExpressionSuffix(ParseObjCBoxedExpr(AtLoc)); in ParseObjCAtExpression()
2842 return ExprError(Diag(AtLoc, diag::err_unexpected_at)); in ParseObjCAtExpression()
2846 return ParsePostfixExpressionSuffix(ParseObjCEncodeExpression(AtLoc)); in ParseObjCAtExpression()
2848 return ParsePostfixExpressionSuffix(ParseObjCProtocolExpression(AtLoc)); in ParseObjCAtExpression()
2850 return ParsePostfixExpressionSuffix(ParseObjCSelectorExpression(AtLoc)); in ParseObjCAtExpression()
2852 return ParseAvailabilityCheckExpr(AtLoc); in ParseObjCAtExpression()
2859 ExprStatementTokLoc == AtLoc) { in ParseObjCAtExpression()
2868 return ExprError(Diag(AtLoc, diag::err_unexpected_at) << in ParseObjCAtExpression()
2872 return ExprError(Diag(AtLoc, diag::err_unexpected_at)); in ParseObjCAtExpression()
3319 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) { in ParseObjCStringLiteral() argument
3328 AtLocs.push_back(AtLoc); in ParseObjCStringLiteral()
3353 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc, in ParseObjCBooleanLiteral() argument
3356 return Actions.ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue); in ParseObjCBooleanLiteral()
3362 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) { in ParseObjCCharacterLiteral() argument
3368 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get()); in ParseObjCCharacterLiteral()
3376 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) { in ParseObjCNumericLiteral() argument
3382 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get()); in ParseObjCNumericLiteral()
3389 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) { in ParseObjCBoxedExpr() argument
3406 return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc), in ParseObjCBoxedExpr()
3410 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) { in ParseObjCArrayLiteral() argument
3450 return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args); in ParseObjCArrayLiteral()
3453 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) { in ParseObjCDictionaryLiteral() argument
3516 return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc), in ParseObjCDictionaryLiteral()
3523 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) { in ParseObjCEncodeExpression() argument
3541 return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(), in ParseObjCEncodeExpression()
3548 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) { in ParseObjCProtocolExpression() argument
3565 return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc, in ParseObjCProtocolExpression()
3572 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) { in ParseObjCSelectorExpression() argument
3631 return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc, in ParseObjCSelectorExpression()