File: Library\ObjectBrowser\AbstractObjectBrowserLibraryManager_ListItems.cs
Web Access
Project: src\src\VisualStudio\Core\Def\Microsoft.VisualStudio.LanguageServices_pxr0p0dn_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices)
// 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.
 
#nullable disable
 
using System;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
 
namespace Microsoft.VisualStudio.LanguageServices.Implementation.Library.ObjectBrowser;
 
internal abstract partial class AbstractObjectBrowserLibraryManager
{
    internal void CollectMemberListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString)
        => GetListItemFactory().CollectMemberListItems(assemblySymbol, compilation, projectId, builder, searchString);
 
    internal void CollectNamespaceListItems(IAssemblySymbol assemblySymbol, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString)
        => GetListItemFactory().CollectNamespaceListItems(assemblySymbol, projectId, builder, searchString);
 
    internal void CollectTypeListItems(IAssemblySymbol assemblySymbol, Compilation compilation, ProjectId projectId, ImmutableArray<ObjectListItem>.Builder builder, string searchString)
        => GetListItemFactory().CollectTypeListItems(assemblySymbol, compilation, projectId, builder, searchString);
 
    internal Task<ImmutableHashSet<(ProjectId, IAssemblySymbol)>> GetAssemblySetAsync(Solution solution, string languageName, CancellationToken cancellationToken)
        => GetListItemFactory().GetAssemblySetAsync(solution, languageName, cancellationToken);
 
    internal Task<ImmutableHashSet<(ProjectId, IAssemblySymbol)>> GetAssemblySetAsync(Project project, bool lookInReferences, CancellationToken cancellationToken)
        => GetListItemFactory().GetAssemblySetAsync(project, lookInReferences, cancellationToken);
 
    internal ImmutableArray<ObjectListItem> GetBaseTypeListItems(ObjectListItem parentListItem, Compilation compilation)
        => GetListItemFactory().GetBaseTypeListItems(parentListItem, compilation);
 
    internal ImmutableArray<ObjectListItem> GetFolderListItems(ObjectListItem parentListItem, Compilation compilation)
        => GetListItemFactory().GetFolderListItems(parentListItem, compilation);
 
    internal ImmutableArray<ObjectListItem> GetMemberListItems(ObjectListItem parentListItem, Compilation compilation)
        => GetListItemFactory().GetMemberListItems(parentListItem, compilation);
 
    internal ImmutableArray<ObjectListItem> GetNamespaceListItems(ObjectListItem parentListItem, Compilation compilation)
        => GetListItemFactory().GetNamespaceListItems(parentListItem, compilation);
 
    internal ImmutableArray<ObjectListItem> GetProjectListItems(Solution solution, string languageName, uint listFlags)
        => GetListItemFactory().GetProjectListItems(solution, languageName, listFlags);
 
    internal ImmutableArray<ObjectListItem> GetReferenceListItems(ObjectListItem parentListItem, Compilation compilation)
        => GetListItemFactory().GetReferenceListItems(parentListItem, compilation);
 
    internal ImmutableArray<ObjectListItem> GetTypeListItems(ObjectListItem parentListItem, Compilation compilation)
        => GetListItemFactory().GetTypeListItems(parentListItem, compilation);
}