@@ -5695,9 +5695,7 @@ bool Parser::isStartOfFreestandingMacroExpansion() {
56955695 return false ;
56965696}
56975697
5698- void Parser::consumeDecl (ParserPosition BeginParserPosition,
5699- ParseDeclOptions Flags,
5700- bool IsTopLevel) {
5698+ void Parser::consumeDecl (ParserPosition BeginParserPosition, bool IsTopLevel) {
57015699 SourceLoc CurrentLoc = Tok.getLoc ();
57025700
57035701 SourceLoc EndLoc = PreviousLoc;
@@ -5706,8 +5704,7 @@ void Parser::consumeDecl(ParserPosition BeginParserPosition,
57065704
57075705 State->setIDEInspectionDelayedDeclState (
57085706 SourceMgr, L->getBufferID (), IDEInspectionDelayedDeclKind::Decl,
5709- Flags.toRaw (), CurDeclContext, {BeginLoc, EndLoc},
5710- BeginParserPosition.PreviousLoc );
5707+ CurDeclContext, {BeginLoc, EndLoc}, BeginParserPosition.PreviousLoc );
57115708
57125709 while (SourceMgr.isBeforeInBuffer (Tok.getLoc (), CurrentLoc))
57135710 consumeToken ();
@@ -5823,8 +5820,7 @@ ParserResult<Decl> Parser::parseDecl(bool IsAtStartOfLineOrPreviousHadSemi,
58235820 }
58245821 });
58255822 if (IfConfigResult.hasCodeCompletion () && isIDEInspectionFirstPass ()) {
5826- consumeDecl (BeginParserPosition, Flags,
5827- CurDeclContext->isModuleScopeContext ());
5823+ consumeDecl (BeginParserPosition, CurDeclContext->isModuleScopeContext ());
58285824 return makeParserError ();
58295825 }
58305826
@@ -6165,7 +6161,7 @@ ParserResult<Decl> Parser::parseDecl(bool IsAtStartOfLineOrPreviousHadSemi,
61656161 !isa<TopLevelCodeDecl>(CurDeclContext) &&
61666162 !isa<AbstractClosureExpr>(CurDeclContext)) {
61676163 // Only consume non-toplevel decls.
6168- consumeDecl (BeginParserPosition, Flags, /* IsTopLevel=*/ false );
6164+ consumeDecl (BeginParserPosition, /* IsTopLevel=*/ false );
61696165
61706166 return makeParserError ();
61716167 }
@@ -8903,7 +8899,7 @@ void Parser::parseAbstractFunctionBody(AbstractFunctionDecl *AFD) {
89038899 State->takeIDEInspectionDelayedDeclState ();
89048900 State->setIDEInspectionDelayedDeclState (
89058901 SourceMgr, L->getBufferID (), IDEInspectionDelayedDeclKind::FunctionBody,
8906- PD_Default, AFD, BodyRange, BodyPreviousLoc);
8902+ AFD, BodyRange, BodyPreviousLoc);
89078903 };
89088904
89098905 bool HasNestedTypeDeclarations;
0 commit comments