Skip to content

Commit 01d7a33

Browse files
authored
Merge pull request #27007 from DougGregor/more-delayed-body-parsing
2 parents 682c45c + 4716def commit 01d7a33

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

include/swift/Subsystems.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,6 @@ namespace swift {
119119
PersistentParserState *PersistentState = nullptr,
120120
bool DelayBodyParsing = true);
121121

122-
/// DEPRECATED: Only used to break LLDB/Swift dependency.
123-
inline
124-
bool parseIntoSourceFile(SourceFile &SF, unsigned BufferID, bool *Done,
125-
SILParserState *SIL,
126-
PersistentParserState *PersistentState,
127-
std::nullptr_t,
128-
bool DelayBodyParsing) {
129-
return parseIntoSourceFile(SF, BufferID, Done, SIL, PersistentState,
130-
DelayBodyParsing);
131-
}
132-
133122
/// Parse a single buffer into the given source file, until the full source
134123
/// contents are parsed.
135124
///

lib/Parse/Parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ static void parseDelayedDecl(
171171
SourceManager &SourceMgr = SF.getASTContext().SourceMgr;
172172
unsigned BufferID =
173173
SourceMgr.findBufferContainingLoc(ParserState.getDelayedDeclLoc());
174-
Parser TheParser(BufferID, SF, nullptr, &ParserState, nullptr,
175-
/*DelayBodyParsing=*/false);
174+
Parser TheParser(BufferID, SF, nullptr, &ParserState, nullptr);
176175
TheParser.SyntaxContext->setDiscard();
177176
std::unique_ptr<CodeCompletionCallbacks> CodeCompletion;
178177
if (CodeCompletionFactory) {

0 commit comments

Comments
 (0)