/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Def/NavigateTo/RoslynCodeSearchResult.cs
42 строки
2 KB
Cyrus Najmabadi
Simplify
17 июн 2025, 04:12
17 июн 2025, 04:12
a3aed10
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using Microsoft.VisualStudio.Search.Data; using Microsoft.VisualStudio.Text.PatternMatching; namespace Microsoft.CodeAnalysis.NavigateTo; internal sealed partial class RoslynSearchItemsSourceProvider { /// <summary> /// Trivial subclass of <see cref="CodeSearchResult"/>. Exists just so we can hold onto the original <see /// cref="INavigateToSearchResult"/> object we got back from the search so we can present the UI with the data /// from it. /// </summary> private sealed class RoslynCodeSearchResult( RoslynSearchItemsSourceProvider provider, INavigateToSearchResult searchResult, string resultType, string primarySortText, string secondarySortText, IReadOnlyCollection<PatternMatch> patternMatches, string? location, float perProviderItemPriority, string language, bool isActiveDocument) : CodeSearchResult( provider._viewFactory, resultType, primarySortText, secondarySortText, patternMatches, location, perProviderItemPriority: perProviderItemPriority, language: language, isActiveDocument: isActiveDocument) { public readonly INavigateToSearchResult SearchResult = searchResult; } }