@@ -551,7 +551,7 @@ void swift::ide::IDEInspectionInstance::performOperation(
551551 swift::CompilerInvocation &Invocation, llvm::ArrayRef<const char *> Args,
552552 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
553553 llvm::MemoryBuffer *ideInspectionTargetBuffer, unsigned int Offset,
554- DiagnosticConsumer *DiagC, bool IgnoreSwiftSourceInfo,
554+ DiagnosticConsumer *DiagC,
555555 std::shared_ptr<std::atomic<bool >> CancellationFlag,
556556 llvm::function_ref<void (CancellableResult<IDEInspectionInstanceResult>)>
557557 Callback) {
@@ -573,8 +573,6 @@ void swift::ide::IDEInspectionInstance::performOperation(
573573 return ;
574574 }
575575
576- Invocation.getFrontendOptions ().IgnoreSwiftSourceInfo = IgnoreSwiftSourceInfo;
577-
578576 // We don't need token list.
579577 Invocation.getLangOptions ().CollectParsedToken = false ;
580578
@@ -630,7 +628,7 @@ void swift::ide::IDEInspectionInstance::codeComplete(
630628 // they're somewhat heavy operations and aren't needed for completion.
631629 performOperation (
632630 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
633- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
631+ CancellationFlag,
634632 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
635633 CIResult.mapAsync <CodeCompleteResult>(
636634 [&CompletionContext, &CancellationFlag](auto &Result,
@@ -707,7 +705,7 @@ void swift::ide::IDEInspectionInstance::typeContextInfo(
707705
708706 performOperation (
709707 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
710- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
708+ CancellationFlag,
711709 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
712710 CIResult.mapAsync <TypeContextInfoResult>(
713711 [&CancellationFlag](auto &Result, auto DeliverTransformed) {
@@ -775,7 +773,7 @@ void swift::ide::IDEInspectionInstance::conformingMethodList(
775773
776774 performOperation (
777775 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
778- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
776+ CancellationFlag,
779777 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
780778 CIResult.mapAsync <ConformingMethodListResults>(
781779 [&ExpectedTypeNames, &CancellationFlag](auto &Result,
@@ -841,7 +839,7 @@ void swift::ide::IDEInspectionInstance::cursorInfo(
841839
842840 performOperation (
843841 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
844- /* IgnoreSwiftSourceInfo= */ false , CancellationFlag,
842+ CancellationFlag,
845843 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
846844 CIResult.mapAsync <CursorInfoResults>(
847845 [&CancellationFlag, Offset](auto &Result, auto DeliverTransformed) {
0 commit comments