@@ -541,7 +541,7 @@ void swift::ide::IDEInspectionInstance::performOperation(
541
541
swift::CompilerInvocation &Invocation, llvm::ArrayRef<const char *> Args,
542
542
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
543
543
llvm::MemoryBuffer *ideInspectionTargetBuffer, unsigned int Offset,
544
- DiagnosticConsumer *DiagC, bool IgnoreSwiftSourceInfo,
544
+ DiagnosticConsumer *DiagC,
545
545
std::shared_ptr<std::atomic<bool >> CancellationFlag,
546
546
llvm::function_ref<void (CancellableResult<IDEInspectionInstanceResult>)>
547
547
Callback) {
@@ -563,8 +563,6 @@ void swift::ide::IDEInspectionInstance::performOperation(
563
563
return ;
564
564
}
565
565
566
- Invocation.getFrontendOptions ().IgnoreSwiftSourceInfo = IgnoreSwiftSourceInfo;
567
-
568
566
// We don't need token list.
569
567
Invocation.getLangOptions ().CollectParsedToken = false ;
570
568
@@ -620,7 +618,7 @@ void swift::ide::IDEInspectionInstance::codeComplete(
620
618
// they're somewhat heavy operations and aren't needed for completion.
621
619
performOperation (
622
620
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
623
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
621
+ CancellationFlag,
624
622
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
625
623
CIResult.mapAsync <CodeCompleteResult>(
626
624
[&CompletionContext, &CancellationFlag](auto &Result,
@@ -697,7 +695,7 @@ void swift::ide::IDEInspectionInstance::typeContextInfo(
697
695
698
696
performOperation (
699
697
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
700
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
698
+ CancellationFlag,
701
699
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
702
700
CIResult.mapAsync <TypeContextInfoResult>(
703
701
[&CancellationFlag](auto &Result, auto DeliverTransformed) {
@@ -765,7 +763,7 @@ void swift::ide::IDEInspectionInstance::conformingMethodList(
765
763
766
764
performOperation (
767
765
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
768
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
766
+ CancellationFlag,
769
767
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
770
768
CIResult.mapAsync <ConformingMethodListResults>(
771
769
[&ExpectedTypeNames, &CancellationFlag](auto &Result,
@@ -831,7 +829,7 @@ void swift::ide::IDEInspectionInstance::cursorInfo(
831
829
832
830
performOperation (
833
831
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
834
- /* IgnoreSwiftSourceInfo= */ false , CancellationFlag,
832
+ CancellationFlag,
835
833
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
836
834
CIResult.mapAsync <CursorInfoResults>(
837
835
[&CancellationFlag, Offset](auto &Result, auto DeliverTransformed) {
0 commit comments