mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -35,6 +35,9 @@ void SourceManager::verifyAllBuffers() const {
|
||||
}
|
||||
|
||||
SourceLoc SourceManager::getCodeCompletionLoc() const {
|
||||
if (CodeCompletionBufferID == 0U)
|
||||
return SourceLoc();
|
||||
|
||||
return getLocForBufferStart(CodeCompletionBufferID)
|
||||
.getAdvancedLoc(CodeCompletionOffset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user