@@ -551,7 +551,7 @@ void swift::ide::IDEInspectionInstance::performOperation(
551
551
swift::CompilerInvocation &Invocation, llvm::ArrayRef<const char *> Args,
552
552
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
553
553
llvm::MemoryBuffer *ideInspectionTargetBuffer, unsigned int Offset,
554
- DiagnosticConsumer *DiagC, bool IgnoreSwiftSourceInfo,
554
+ DiagnosticConsumer *DiagC,
555
555
std::shared_ptr<std::atomic<bool >> CancellationFlag,
556
556
llvm::function_ref<void (CancellableResult<IDEInspectionInstanceResult>)>
557
557
Callback) {
@@ -573,8 +573,6 @@ void swift::ide::IDEInspectionInstance::performOperation(
573
573
return ;
574
574
}
575
575
576
- Invocation.getFrontendOptions ().IgnoreSwiftSourceInfo = IgnoreSwiftSourceInfo;
577
-
578
576
// We don't need token list.
579
577
Invocation.getLangOptions ().CollectParsedToken = false ;
580
578
@@ -630,7 +628,7 @@ void swift::ide::IDEInspectionInstance::codeComplete(
630
628
// they're somewhat heavy operations and aren't needed for completion.
631
629
performOperation (
632
630
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
633
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
631
+ CancellationFlag,
634
632
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
635
633
CIResult.mapAsync <CodeCompleteResult>(
636
634
[&CompletionContext, &CancellationFlag](auto &Result,
@@ -707,7 +705,7 @@ void swift::ide::IDEInspectionInstance::typeContextInfo(
707
705
708
706
performOperation (
709
707
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
710
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
708
+ CancellationFlag,
711
709
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
712
710
CIResult.mapAsync <TypeContextInfoResult>(
713
711
[&CancellationFlag](auto &Result, auto DeliverTransformed) {
@@ -775,7 +773,7 @@ void swift::ide::IDEInspectionInstance::conformingMethodList(
775
773
776
774
performOperation (
777
775
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
778
- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
776
+ CancellationFlag,
779
777
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
780
778
CIResult.mapAsync <ConformingMethodListResults>(
781
779
[&ExpectedTypeNames, &CancellationFlag](auto &Result,
@@ -841,7 +839,7 @@ void swift::ide::IDEInspectionInstance::cursorInfo(
841
839
842
840
performOperation (
843
841
Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
844
- /* IgnoreSwiftSourceInfo= */ false , CancellationFlag,
842
+ CancellationFlag,
845
843
[&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
846
844
CIResult.mapAsync <CursorInfoResults>(
847
845
[&CancellationFlag, Offset](auto &Result, auto DeliverTransformed) {
0 commit comments