@@ -557,7 +557,7 @@ void swift::ide::IDEInspectionInstance::performOperation(
557
557
swift::CompilerInvocation &Invocation, llvm::ArrayRef<const char *> Args,
558
558
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
559
559
llvm::MemoryBuffer *ideInspectionTargetBuffer, unsigned int Offset,
560
- DiagnosticConsumer *DiagC, bool IgnoreSwiftSourceInfo,
560
+ DiagnosticConsumer *DiagC,
561
561
std::shared_ptr<std::atomic<bool >> CancellationFlag,
562
562
llvm::function_ref<void (CancellableResult<IDEInspectionInstanceResult>)>
563
563
Callback) {
@@ -579,8 +579,6 @@ void swift::ide::IDEInspectionInstance::performOperation(
579
579
return ;
580
580
}
581
581
582
- Invocation.getFrontendOptions ().IgnoreSwiftSourceInfo = IgnoreSwiftSourceInfo;
583
-
584
582
// We don't need token list.
585
583
Invocation.getLangOptions ().CollectParsedToken = false ;
586
584
@@ -636,7 +634,7 @@ void swift::ide::IDEInspectionInstance::codeComplete(
636
634
// they're somewhat heavy operations and aren't needed for completion.
637
635
performOperation (
638
636
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
639
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
637
+ CancellationFlag,
640
638
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
641
639
CIResult.mapAsync <CodeCompleteResult>(
642
640
[&CompletionContext, &CancellationFlag](auto &Result,
@@ -713,7 +711,7 @@ void swift::ide::IDEInspectionInstance::typeContextInfo(
713
711
714
712
performOperation (
715
713
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
716
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
714
+ CancellationFlag,
717
715
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
718
716
CIResult.mapAsync <TypeContextInfoResult>(
719
717
[&CancellationFlag](auto &Result, auto DeliverTransformed) {
@@ -781,7 +779,7 @@ void swift::ide::IDEInspectionInstance::conformingMethodList(
781
779
782
780
performOperation (
783
781
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
784
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
782
+ CancellationFlag,
785
783
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
786
784
CIResult.mapAsync <ConformingMethodListResults>(
787
785
[&ExpectedTypeNames, &CancellationFlag](auto &Result,
@@ -851,7 +849,7 @@ void swift::ide::IDEInspectionInstance::cursorInfo(
851
849
852
850
performOperation (
853
851
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
854
- /* IgnoreSwiftSourceInfo= */ false , CancellationFlag,
852
+ CancellationFlag,
855
853
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
856
854
CIResult.mapAsync <CursorInfoResults>(
857
855
[&CancellationFlag](auto &Result, auto DeliverTransformed) {
0 commit comments