Merge pull request #75490 from ahoppen/swiftparser-on-deep-stack

[SourceKit] Run SwiftParser on a deep stack for the related identifiers request
This commit is contained in:
Alex Hoppen
2024-07-29 15:52:43 -07:00
committed by GitHub
4 changed files with 320 additions and 6 deletions

View File

@@ -2537,6 +2537,8 @@ void SwiftLangSupport::findRelatedIdentifiersInFile(
std::function<void(const RequestResult<RelatedIdentsResult> &)> Receiver;
SwiftInvocationRef Invok;
bool requiresDeepStack() override { return true; }
#if SWIFT_BUILD_SWIFT_SYNTAX
// FIXME: Don't silently eat errors here.
RelatedIdentsResult getRelatedIdents(SourceFile *SrcFile,