Eliminate DelayedParsingCallbacks.

DelayedParsingCallbacks only had one implementation, for code
completion, which is only used to determine which bodies to skip and
which to delay. Inline that logic into the parser's delay logic and
remove DelayedParsingCallbacks entirely.
This commit is contained in:
Doug Gregor
2019-09-02 13:31:57 -07:00
parent b3e3d39ab3
commit d7f6768a9d
11 changed files with 24 additions and 125 deletions

View File

@@ -35,6 +35,9 @@ void SourceManager::verifyAllBuffers() const {
}
SourceLoc SourceManager::getCodeCompletionLoc() const {
if (CodeCompletionBufferID == 0U)
return SourceLoc();
return getLocForBufferStart(CodeCompletionBufferID)
.getAdvancedLoc(CodeCompletionOffset);
}