// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Host; namespace Microsoft.CodeAnalysis.NavigateTo { [Obsolete("Use " + nameof(INavigateToSearchService_RemoveInterfaceAboveAndRenameThisAfterInternalsVisibleToUsersUpdate) + " instead.")] internal interface INavigateToSearchService : ILanguageService { Task> SearchProjectAsync(Project project, string searchPattern, CancellationToken cancellationToken); Task> SearchDocumentAsync(Document document, string searchPattern, CancellationToken cancellationToken); } // This will be renamed to replace INavigateToSearchService as part of https://github.com/dotnet/roslyn/issues/28343 internal interface INavigateToSearchService_RemoveInterfaceAboveAndRenameThisAfterInternalsVisibleToUsersUpdate : ILanguageService { IImmutableSet KindsProvided { get; } bool CanFilter { get; } Task> SearchProjectAsync(Project project, string searchPattern, IImmutableSet kinds, CancellationToken cancellationToken); Task> SearchDocumentAsync(Document document, string searchPattern, IImmutableSet kinds, CancellationToken cancellationToken); } }