@@ -541,7 +541,7 @@ void swift::ide::IDEInspectionInstance::performOperation(
541541 swift::CompilerInvocation &Invocation, llvm::ArrayRef<const char *> Args,
542542 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
543543 llvm::MemoryBuffer *ideInspectionTargetBuffer, unsigned int Offset,
544- DiagnosticConsumer *DiagC, bool IgnoreSwiftSourceInfo,
544+ DiagnosticConsumer *DiagC,
545545 std::shared_ptr<std::atomic<bool >> CancellationFlag,
546546 llvm::function_ref<void (CancellableResult<IDEInspectionInstanceResult>)>
547547 Callback) {
@@ -563,8 +563,6 @@ void swift::ide::IDEInspectionInstance::performOperation(
563563 return ;
564564 }
565565
566- Invocation.getFrontendOptions ().IgnoreSwiftSourceInfo = IgnoreSwiftSourceInfo;
567-
568566 // We don't need token list.
569567 Invocation.getLangOptions ().CollectParsedToken = false ;
570568
@@ -620,7 +618,7 @@ void swift::ide::IDEInspectionInstance::codeComplete(
620618 // they're somewhat heavy operations and aren't needed for completion.
621619 performOperation (
622620 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
623- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
621+ CancellationFlag,
624622 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
625623 CIResult.mapAsync <CodeCompleteResult>(
626624 [&CompletionContext, &CancellationFlag](auto &Result,
@@ -697,7 +695,7 @@ void swift::ide::IDEInspectionInstance::typeContextInfo(
697695
698696 performOperation (
699697 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
700- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
698+ CancellationFlag,
701699 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
702700 CIResult.mapAsync <TypeContextInfoResult>(
703701 [&CancellationFlag](auto &Result, auto DeliverTransformed) {
@@ -765,7 +763,7 @@ void swift::ide::IDEInspectionInstance::conformingMethodList(
765763
766764 performOperation (
767765 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
768- /* IgnoreSwiftSourceInfo= */ true , CancellationFlag,
766+ CancellationFlag,
769767 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
770768 CIResult.mapAsync <ConformingMethodListResults>(
771769 [&ExpectedTypeNames, &CancellationFlag](auto &Result,
@@ -831,7 +829,7 @@ void swift::ide::IDEInspectionInstance::cursorInfo(
831829
832830 performOperation (
833831 Invocation, Args, FileSystem, ideInspectionTargetBuffer, Offset, DiagC,
834- /* IgnoreSwiftSourceInfo= */ false , CancellationFlag,
832+ CancellationFlag,
835833 [&](CancellableResult<IDEInspectionInstanceResult> CIResult) {
836834 CIResult.mapAsync <CursorInfoResults>(
837835 [&CancellationFlag, Offset](auto &Result, auto DeliverTransformed) {
0 commit comments