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);
84 Diag(AtLoc, diag::err_atimport);
88 Diag(AtLoc, diag::err_unexpected_at);
101 Parser::ParseObjCAtClassDeclaration(SourceLocation atLoc) {
126 return Actions.ActOnForwardClassDeclaration(atLoc, ClassNames.data(),
131 void Parser::CheckNestedObjCContexts(SourceLocation AtLoc)
139 CurParsedObjCImpl->finish(AtLoc);
141 Actions.ActOnAtEnd(getCurScope(), AtLoc);
143 Diag(AtLoc, diag::err_objc_missing_end)
144 << FixItHint::CreateInsertion(AtLoc, "@end\n");
179 Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc,
183 CheckNestedObjCContexts(AtLoc);
248 Actions.ActOnStartCategoryInterface(AtLoc,
257 ParseObjCClassInstanceVariables(CategoryType, tok::objc_private, AtLoc);
297 Actions.ActOnStartClassInterface(AtLoc, nameId, nameLoc,
304 ParseObjCClassInstanceVariables(ClsType, tok::objc_protected, AtLoc);
319 SourceLocation AtLoc;
325 ObjCDeclSpec &OCDS, SourceLocation AtLoc,
328 P(P), Props(Props), OCDS(OCDS), AtLoc(AtLoc), LParenLoc(LParenLoc),
334 P.Diag(AtLoc, diag::err_objc_property_requires_field_name)
339 P.Diag(AtLoc, diag::err_objc_property_bitfield)
361 P.Actions.ActOnProperty(P.getCurScope(), AtLoc, LParenLoc,
451 SourceLocation AtLoc = ConsumeToken(); // the "@"
460 AtEnd.setBegin(AtLoc);
478 Diag(AtLoc, diag::err_objc_illegal_interface_qual);
485 Diag(AtLoc, diag::err_objc_missing_end)
486 << FixItHint::CreateInsertion(AtLoc, "@end\n");
497 Diag(AtLoc, diag::err_objc_directive_only_in_protocol);
504 Diag(AtLoc, diag::err_objc_properties_require_objc2);
515 OCDS, AtLoc, LParenLoc, MethodImplKind);
1246 void Parser::HelperActionsForIvarDeclarations(Decl *interfaceDecl, SourceLocation atLoc,
1258 Actions.ActOnFields(getCurScope(), atLoc, interfaceDecl,
1285 SourceLocation atLoc) {
1326 HelperActionsForIvarDeclarations(interfaceDecl, atLoc,
1379 HelperActionsForIvarDeclarations(interfaceDecl, atLoc,
1401 Parser::ParseObjCAtProtocolDeclaration(SourceLocation AtLoc,
1425 return Actions.ActOnForwardProtocolDeclaration(AtLoc, &ProtoInfo, 1,
1429 CheckNestedObjCContexts(AtLoc);
1454 return Actions.ActOnForwardProtocolDeclaration(AtLoc,
1471 Actions.ActOnStartProtocolInterface(AtLoc, protocolName, nameLoc,
1492 Parser::ParseObjCAtImplementationDeclaration(SourceLocation AtLoc) {
1495 CheckNestedObjCContexts(AtLoc);
1550 AtLoc, nameId, nameLoc, categoryId,
1568 AtLoc, nameId, nameLoc,
1572 ParseObjCClassInstanceVariables(ObjCImpDecl, tok::objc_private, AtLoc);
1655 Decl *Parser::ParseObjCAtAliasDeclaration(SourceLocation atLoc) {
1672 return Actions.ActOnCompatibilityAlias(atLoc, aliasId, aliasLoc,
1687 Decl *Parser::ParseObjCPropertySynthesize(SourceLocation atLoc) {
1724 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, true,
1741 Decl *Parser::ParseObjCPropertyDynamic(SourceLocation atLoc) {
1760 Actions.ActOnPropertyImplDecl(getCurScope(), atLoc, propertyLoc, false,
1774 StmtResult Parser::ParseObjCThrowStmt(SourceLocation atLoc) {
1786 return Actions.ActOnObjCAtThrowStmt(atLoc, Res.get(), getCurScope());
1793 Parser::ParseObjCSynchronizedStmt(SourceLocation atLoc) {
1823 operand = Actions.ActOnObjCAtSynchronizedOperand(atLoc, operand.get());
1838 return Actions.ActOnObjCAtSynchronizedStmt(atLoc, operand.get(), body.get());
1852 StmtResult Parser::ParseObjCTryStmt(SourceLocation atLoc) {
1943 Diag(atLoc, diag::err_missing_catch_finally);
1947 return Actions.ActOnObjCAtTryStmt(atLoc, TryBody.get(),
1956 Parser::ParseObjCAutoreleasePoolStmt(SourceLocation atLoc) {
1971 return Actions.ActOnObjCAutoreleasePoolStmt(atLoc,
2056 StmtResult Parser::ParseObjCAtStatement(SourceLocation AtLoc) {
2064 return ParseObjCTryStmt(AtLoc);
2067 return ParseObjCThrowStmt(AtLoc);
2070 return ParseObjCSynchronizedStmt(AtLoc);
2073 return ParseObjCAutoreleasePoolStmt(AtLoc);
2075 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc));
2089 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) {
2124 Actions.BuildObjCNumericLiteral(AtLoc, Lit.get()));
2129 return ParsePostfixExpressionSuffix(ParseObjCStringLiteral(AtLoc));
2132 return ParsePostfixExpressionSuffix(ParseObjCCharacterLiteral(AtLoc));
2135 return ParsePostfixExpressionSuffix(ParseObjCNumericLiteral(AtLoc));
2139 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, true));
2142 return ParsePostfixExpressionSuffix(ParseObjCBooleanLiteral(AtLoc, false));
2146 return ParsePostfixExpressionSuffix(ParseObjCArrayLiteral(AtLoc));
2150 return ParsePostfixExpressionSuffix(ParseObjCDictionaryLiteral(AtLoc));
2154 return ParsePostfixExpressionSuffix(ParseObjCBoxedExpr(AtLoc));
2158 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2162 return ParsePostfixExpressionSuffix(ParseObjCEncodeExpression(AtLoc));
2164 return ParsePostfixExpressionSuffix(ParseObjCProtocolExpression(AtLoc));
2166 return ParsePostfixExpressionSuffix(ParseObjCSelectorExpression(AtLoc));
2178 return ExprError(Diag(AtLoc, diag::err_unexpected_at) <<
2182 return ExprError(Diag(AtLoc, diag::err_unexpected_at));
2610 ExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) {
2619 AtLocs.push_back(AtLoc);
2645 ExprResult Parser::ParseObjCBooleanLiteral(SourceLocation AtLoc,
2648 return Actions.ActOnObjCBoolLiteral(AtLoc, EndLoc, ArgValue);
2654 ExprResult Parser::ParseObjCCharacterLiteral(SourceLocation AtLoc) {
2660 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get());
2668 ExprResult Parser::ParseObjCNumericLiteral(SourceLocation AtLoc) {
2674 return Actions.BuildObjCNumericLiteral(AtLoc, Lit.get());
2681 Parser::ParseObjCBoxedExpr(SourceLocation AtLoc) {
2698 return Actions.BuildObjCBoxedExpr(SourceRange(AtLoc, RPLoc),
2702 ExprResult Parser::ParseObjCArrayLiteral(SourceLocation AtLoc) {
2733 return Actions.BuildObjCArrayLiteral(SourceRange(AtLoc, EndLoc), Args);
2736 ExprResult Parser::ParseObjCDictionaryLiteral(SourceLocation AtLoc) {
2787 return Actions.BuildObjCDictionaryLiteral(SourceRange(AtLoc, EndLoc),
2794 Parser::ParseObjCEncodeExpression(SourceLocation AtLoc) {
2812 return Actions.ParseObjCEncodeExpression(AtLoc, EncLoc, T.getOpenLocation(),
2819 Parser::ParseObjCProtocolExpression(SourceLocation AtLoc) {
2836 return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc,
2843 ExprResult Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) {
2902 return Actions.ParseObjCSelectorExpression(Sel, AtLoc, SelectorLoc,