Home | History | Annotate | Download | only in Parse

Lines Matching defs:AtLoc

48   SourceLocation AtLoc = ConsumeToken(); // the "@"
59 return ParseObjCAtClassDeclaration(AtLoc);
62 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, attrs);
67 return ParseObjCAtProtocolDeclaration(AtLoc, attrs);
70 return ParseObjCAtImplementationDeclaration(AtLoc);
72 return ParseObjCAtEndDeclaration(AtLoc);
74 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc);
77 SingleDecl = ParseObjCPropertySynthesize(AtLoc);
80 SingleDecl = ParseObjCPropertyDynamic(AtLoc);
84 return ParseModuleImport(AtLoc);
85 Diag(AtLoc, diag::err_atimport);
89 Diag(AtLoc, diag::err_unexpected_at);
127 Parser::ParseObjCAtClassDeclaration(SourceLocation atLoc) {
157 return Actions.ActOnForwardClassDeclaration(atLoc, ClassNames.data(),
163 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc)
171 CurParsedObjCImpl->finish(AtLoc);
173 Actions.ActOnAtEnd(getCurScope(), AtLoc);
175 Diag(AtLoc, diag::err_objc_missing_end)
176 << FixItHint::CreateInsertion(AtLoc, "@end\n");
211 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
215 CheckNestedObjCContexts(AtLoc);
293 Actions.ActOnStartCategoryInterface(AtLoc,
303 ParseObjCClassInstanceVariables(CategoryType, tok::objc_private, AtLoc);
373 Actions.ActOnStartClassInterface(getCurScope(), AtLoc, nameId, nameLoc,
384 ParseObjCClassInstanceVariables(ClsType, tok::objc_protected, AtLoc);
695 SourceLocation AtLoc = ConsumeToken(); // the "@"
704 AtEnd.setBegin(AtLoc);
722 Diag(AtLoc, diag::err_objc_illegal_interface_qual);
729 Diag(AtLoc, diag::err_objc_missing_end)
730 << FixItHint::CreateInsertion(AtLoc, "@end\n");
741 Diag(AtLoc, diag::err_objc_directive_only_in_protocol);
748 Diag(AtLoc, diag::err_objc_properties_require_objc2);
761 Diag(AtLoc, diag::err_objc_property_requires_field_name)
766 Diag(AtLoc, diag::err_objc_property_bitfield)
792 getCurScope(), AtLoc, LParenLoc, FD, OCDS, GetterSel, SetterSel,
1859 void Parser::HelperActionsForIvarDeclarations(Decl *interfaceDecl, SourceLocation atLoc,
1871 Actions.ActOnFields(getCurScope(), atLoc, interfaceDecl,
1898 SourceLocation atLoc) {
1939 HelperActionsForIvarDeclarations(interfaceDecl, atLoc,
1980 HelperActionsForIvarDeclarations(interfaceDecl, atLoc,
2002 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc,
2026 return Actions.ActOnForwardProtocolDeclaration(AtLoc, ProtoInfo,
2030 CheckNestedObjCContexts(AtLoc);
2055 return Actions.ActOnForwardProtocolDeclaration(AtLoc, ProtocolRefs,
2071 Actions.ActOnStartProtocolInterface(AtLoc, protocolName, nameLoc,
2092 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc) {
2095 CheckNestedObjCContexts(AtLoc);
2172 AtLoc, nameId, nameLoc, categoryId,
2190 AtLoc, nameId, nameLoc,
2194 ParseObjCClassInstanceVariables(ObjCImpDecl, tok::objc_private, AtLoc);
2282 Decl *Parser::ParseObjCAtAliasDeclaration(SourceLocation atLoc) {
2299 return Actions.ActOnCompatibilityAlias(atLoc, aliasId, aliasLoc,
2314 Decl *Parser::ParseObjCPropertySynthesize(SourceLocation atLoc) {
2351 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, true,
2368 Decl *Parser::ParseObjCPropertyDynamic(SourceLocation atLoc) {
2387 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, false,
2401 StmtResult Parser::ParseObjCThrowStmt(SourceLocation atLoc) {
2413 return Actions.ActOnObjCAtThrowStmt(atLoc, Res.get(), getCurScope());
2420 Parser::ParseObjCSynchronizedStmt(SourceLocation atLoc) {
2450 operand = Actions.ActOnObjCAtSynchronizedOperand(atLoc, operand.get());
2465 return Actions.ActOnObjCAtSynchronizedStmt(atLoc, operand.get(), body.get());
2479 StmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
2570 Diag(atLoc, diag::err_missing_catch_finally);
2574 return Actions.ActOnObjCAtTryStmt(atLoc, TryBody.get(),
2583 Parser::ParseObjCAutoreleasePoolStmt(SourceLocation atLoc) {
2598 return Actions.ActOnObjCAutoreleasePoolStmt(atLoc,
2684 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc) {
2692 return ParseObjCTryStmt(AtLoc);
2695 return ParseObjCThrowStmt(AtLoc);
2698 return ParseObjCSynchronizedStmt(AtLoc);
2701 return ParseObjCAutoreleasePoolStmt(AtLoc);
2709 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc));
2723 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) {
2758 Actions.BuildObjCNumericLiteral(AtLoc, Lit.get()));
2763 return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc));
2766 return ParsePostfixExpressionSuffix(ParseObjCCharacterLiteral(AtLoc));
2769 return ParsePostfixExpressionSuffix(ParseObjCNumericLiteral(AtLoc));
2773 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, true));
2776 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, false));
2780 return ParsePostfixExpressionSuffix(ParseObjCArrayLiteral(AtLoc));
2784 return ParsePostfixExpressionSuffix(ParseObjCDictionaryLiteral(AtLoc));
2788 return ParsePostfixExpressionSuffix(ParseObjCBoxedExpr(AtLoc));
2792 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2796 return ParsePostfixExpressionSuffix(ParseObjCEncodeExpression(AtLoc));
2798 return ParsePostfixExpressionSuffix(ParseObjCProtocolExpression(AtLoc));
2800 return ParsePostfixExpressionSuffix(ParseObjCSelectorExpression(AtLoc));
2812 return ExprError(Diag(AtLoc, diag::err_unexpected_at) <<
2816 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
3264 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) {
3273 AtLocs.push_back(AtLoc);
3299 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc,
3302 return Actions.ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue);
3308 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) {
3314 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get());
3322 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) {
3328 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get());
3335 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) {
3352 return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc),
3356 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) {
3387 return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args);
3390 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) {
3441 return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc),
3448 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) {
3466 return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(),
3473 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) {
3490 return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc,
3497 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) {
3556 return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc,