Home | History | Annotate | Download | only in Parse

Lines Matching refs:AtLoc

47   SourceLocation AtLoc = ConsumeToken(); // the "@"
58 return ParseObjCAtClassDeclaration(AtLoc);
61 SingleDecl = ParseObjCAtInterfaceDeclaration(AtLoc, attrs);
66 return ParseObjCAtProtocolDeclaration(AtLoc, attrs);
69 return ParseObjCAtImplementationDeclaration(AtLoc);
71 return ParseObjCAtEndDeclaration(AtLoc);
73 SingleDecl = ParseObjCAtAliasDeclaration(AtLoc);
76 SingleDecl = ParseObjCPropertySynthesize(AtLoc);
79 SingleDecl = ParseObjCPropertyDynamic(AtLoc);
83 return ParseModuleImport(AtLoc);
88 Diag(AtLoc, diag::err_unexpected_at);
101 Parser::ParseObjCAtClassDeclaration(SourceLocation atLoc) {
128 return Actions.ActOnForwardClassDeclaration(atLoc, ClassNames.data(),
133 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc)
141 CurParsedObjCImpl->finish(AtLoc);
143 Actions.ActOnAtEnd(getCurScope(), AtLoc);
145 Diag(AtLoc, diag::err_objc_missing_end)
146 << FixItHint::CreateInsertion(AtLoc, "@end\n");
181 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
185 CheckNestedObjCContexts(AtLoc);
248 Actions.ActOnStartCategoryInterface(AtLoc,
257 ParseObjCClassInstanceVariables(CategoryType, tok::objc_private, AtLoc);
293 Actions.ActOnStartClassInterface(AtLoc, nameId, nameLoc,
300 ParseObjCClassInstanceVariables(ClsType, tok::objc_protected, AtLoc);
315 SourceLocation AtLoc;
321 ObjCDeclSpec &OCDS, SourceLocation AtLoc,
324 P(P), Props(Props), OCDS(OCDS), AtLoc(AtLoc), LParenLoc(LParenLoc),
330 P.Diag(AtLoc, diag::err_objc_property_requires_field_name)
335 P.Diag(AtLoc, diag::err_objc_property_bitfield)
357 P.Actions.ActOnProperty(P.getCurScope(), AtLoc, LParenLoc,
447 SourceLocation AtLoc = ConsumeToken(); // the "@"
456 AtEnd.setBegin(AtLoc);
474 Diag(AtLoc, diag::err_objc_illegal_interface_qual);
481 Diag(AtLoc, diag::err_objc_missing_end)
482 << FixItHint::CreateInsertion(AtLoc, "@end\n");
493 Diag(AtLoc, diag::err_objc_directive_only_in_protocol);
500 Diag(AtLoc, diag::err_objc_properties_require_objc2);
511 OCDS, AtLoc, LParenLoc, MethodImplKind);
1240 void Parser::HelperActionsForIvarDeclarations(Decl *interfaceDecl, SourceLocation atLoc,
1252 Actions.ActOnFields(getCurScope(), atLoc, interfaceDecl,
1279 SourceLocation atLoc) {
1322 HelperActionsForIvarDeclarations(interfaceDecl, atLoc,
1375 HelperActionsForIvarDeclarations(interfaceDecl, atLoc,
1397 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc,
1422 return Actions.ActOnForwardProtocolDeclaration(AtLoc, &ProtoInfo, 1,
1426 CheckNestedObjCContexts(AtLoc);
1451 return Actions.ActOnForwardProtocolDeclaration(AtLoc,
1468 Actions.ActOnStartProtocolInterface(AtLoc, protocolName, nameLoc,
1489 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc) {
1492 CheckNestedObjCContexts(AtLoc);
1545 AtLoc, nameId, nameLoc, categoryId,
1563 AtLoc, nameId, nameLoc,
1567 ParseObjCClassInstanceVariables(ObjCImpDecl, tok::objc_private, AtLoc);
1650 Decl *Parser::ParseObjCAtAliasDeclaration(SourceLocation atLoc) {
1668 return Actions.ActOnCompatibilityAlias(atLoc, aliasId, aliasLoc,
1683 Decl *Parser::ParseObjCPropertySynthesize(SourceLocation atLoc) {
1722 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, true,
1739 Decl *Parser::ParseObjCPropertyDynamic(SourceLocation atLoc) {
1758 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, false,
1772 StmtResult Parser::ParseObjCThrowStmt(SourceLocation atLoc) {
1784 return Actions.ActOnObjCAtThrowStmt(atLoc, Res.take(), getCurScope());
1791 Parser::ParseObjCSynchronizedStmt(SourceLocation atLoc) {
1821 operand = Actions.ActOnObjCAtSynchronizedOperand(atLoc, operand.take());
1836 return Actions.ActOnObjCAtSynchronizedStmt(atLoc, operand.get(), body.get());
1850 StmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
1941 Diag(atLoc, diag::err_missing_catch_finally);
1945 return Actions.ActOnObjCAtTryStmt(atLoc, TryBody.take(),
1954 Parser::ParseObjCAutoreleasePoolStmt(SourceLocation atLoc) {
1969 return Actions.ActOnObjCAutoreleasePoolStmt(atLoc,
2054 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc) {
2062 return ParseObjCTryStmt(AtLoc);
2065 return ParseObjCThrowStmt(AtLoc);
2068 return ParseObjCSynchronizedStmt(AtLoc);
2071 return ParseObjCAutoreleasePoolStmt(AtLoc);
2073 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc));
2087 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) {
2122 Actions.BuildObjCNumericLiteral(AtLoc, Lit.take()));
2127 return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc));
2130 return ParsePostfixExpressionSuffix(ParseObjCCharacterLiteral(AtLoc));
2133 return ParsePostfixExpressionSuffix(ParseObjCNumericLiteral(AtLoc));
2137 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, true));
2140 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, false));
2144 return ParsePostfixExpressionSuffix(ParseObjCArrayLiteral(AtLoc));
2148 return ParsePostfixExpressionSuffix(ParseObjCDictionaryLiteral(AtLoc));
2152 return ParsePostfixExpressionSuffix(ParseObjCBoxedExpr(AtLoc));
2156 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2160 return ParsePostfixExpressionSuffix(ParseObjCEncodeExpression(AtLoc));
2162 return ParsePostfixExpressionSuffix(ParseObjCProtocolExpression(AtLoc));
2164 return ParsePostfixExpressionSuffix(ParseObjCSelectorExpression(AtLoc));
2176 return ExprError(Diag(AtLoc, diag::err_unexpected_at) <<
2180 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2612 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) {
2621 AtLocs.push_back(AtLoc);
2647 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc,
2650 return Actions.ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue);
2656 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) {
2662 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.take());
2670 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) {
2676 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.take());
2683 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) {
2700 return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc),
2704 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) {
2734 return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args);
2737 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) {
2792 return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc),
2799 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) {
2817 return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(),
2824 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) {
2841 return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc,
2848 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) {
2902 return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc,