9 implementations of IImmutableSet
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
19public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, IReadOnlySet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByRefEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByValueEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
24public sealed partial class ImmutableSortedSet<T> : IImmutableSet<T>, IReadOnlySet<T>, IReadOnlyList<T>, IList<T>, ISet<T>, IList, IStrongEnumerable<T, ImmutableSortedSet<T>.Enumerator>
379 references to IImmutableSet
Aspire.Hosting.Dapr (1)
DaprSidecarOptions.cs (1)
148public IImmutableSet<string> ResourcesPaths { get; init; } = ImmutableHashSet<string>.Empty;
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
16public static async Task<IImmutableSet<string>> DetectFeaturesAsync(
Microsoft.AspNetCore.Components.Endpoints (5)
FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (3)
20public static CollectionConverter<IImmutableSet<TElement>> CreateInterfaceConverter(FormDataConverter<TElement> elementConverter) 23IImmutableSet<TElement>, 25IImmutableSet<TElement>,
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
77var _ when type == (typeof(IImmutableSet<TElement>)) => true, 177var _ when type.IsAssignableTo(typeof(IImmutableSet<TElement>)) =>
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
866CanDeserialize_Collection<IImmutableSet<int>, ImmutableHashSet<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (5)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (3)
20public static CollectionConverter<IImmutableSet<TElement>> CreateInterfaceConverter(FormDataConverter<TElement> elementConverter) 23IImmutableSet<TElement>, 25IImmutableSet<TElement>,
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
77var _ when type == (typeof(IImmutableSet<TElement>)) => true, 177var _ when type.IsAssignableTo(typeof(IImmutableSet<TElement>)) =>
Microsoft.CodeAnalysis (14)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (14)
323IImmutableSet<T> IImmutableSet<T>.Clear() 326IImmutableSet<T> IImmutableSet<T>.Add(T value) 329IImmutableSet<T> IImmutableSet<T>.Remove(T value) 332IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) 335IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) 338IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) 341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
Microsoft.CodeAnalysis.CodeStyle (16)
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
20private static readonly IImmutableSet<string> s_nonEnumerableReturningLinqMethodNames =
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (14)
323IImmutableSet<T> IImmutableSet<T>.Clear() 326IImmutableSet<T> IImmutableSet<T>.Add(T value) 329IImmutableSet<T> IImmutableSet<T>.Remove(T value) 332IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) 335IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) 338IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) 341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
184where TSet : IImmutableSet<TValue>
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
126INamedTypeSymbol constraintType, IImmutableSet<Project> projects)
Microsoft.CodeAnalysis.Collections.Package (14)
ImmutableSegmentedHashSet`1.cs (14)
323IImmutableSet<T> IImmutableSet<T>.Clear() 326IImmutableSet<T> IImmutableSet<T>.Add(T value) 329IImmutableSet<T> IImmutableSet<T>.Remove(T value) 332IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) 335IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) 338IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) 341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
NavigateTo\NavigateToSearcherTests.cs (8)
52IImmutableSet<string> kinds, 74IImmutableSet<string> kinds, 102IImmutableSet<string> kinds, 359public IImmutableSet<string> KindsProvided => AbstractNavigateToSearchService.AllKinds; 368public Task SearchCachedDocumentsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken) 374public Task SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, CancellationToken cancellationToken) 380public Task SearchGeneratedDocumentsAsync(Solution solution, ImmutableArray<Project> projects, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken) 386public Task SearchProjectsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
NavigateTo\NavigateToItemProvider.cs (1)
92private void StartSearch(INavigateToCallback callback, string searchValue, IImmutableSet<string> kinds)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (8)
DocumentHighlighting\IFSharpDocumentHighlightsService.cs (1)
53Document document, int position, IImmutableSet<Document> documentsToSearch, CancellationToken cancellationToken);
Internal\DocumentHighlighting\FSharpDocumentHighlightsService.cs (1)
72public async Task<ImmutableArray<DocumentHighlights>> GetDocumentHighlightsAsync(Document document, int position, IImmutableSet<Document> documentsToSearch, HighlightingOptions options, CancellationToken cancellationToken)
Internal\NavigateTo\FSharpNavigateToSearchService.cs (3)
31public IImmutableSet<string> KindsProvided => _service.KindsProvided; 38IImmutableSet<string> kinds, 52IImmutableSet<string> kinds,
NavigateTo\IFSharpNavigateToSearchService.cs (3)
13IImmutableSet<string> KindsProvided { get; } 17Task<ImmutableArray<FSharpNavigateToSearchResult>> SearchProjectAsync(Project project, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken); 18Task<ImmutableArray<FSharpNavigateToSearchResult>> SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
NavigateTo\OmniSharpNavigateToSearchService.cs (1)
23IImmutableSet<string> kinds,
Microsoft.CodeAnalysis.Features (42)
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
71IImmutableSet<Document>? documents,
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
136var allInternalsVisibleToAttributesOfProject = await GetAllInternalsVisibleToAssemblyNamesOfProjectAsync(context, cancellationToken).ConfigureAwait(false); 174private async Task<IImmutableSet<string>> GetAllInternalsVisibleToAssemblyNamesOfProjectAsync(CompletionContext completionContext, CancellationToken cancellationToken)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
460var dependentProjects = graph.GetProjectsThatDirectlyDependOnThisProject(startingProject.Id);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (5)
37Document document, int position, IImmutableSet<Document> documentsToSearch, HighlightingOptions options, CancellationToken cancellationToken) 64Document document, int position, IImmutableSet<Document> documentsToSearch, HighlightingOptions options, CancellationToken cancellationToken) 114IImmutableSet<Document> documentsToSearch, 163IImmutableSet<Document> documentsToSearch, ISymbol symbol, 206IImmutableSet<Document> documentToSearch,
DocumentHighlighting\IDocumentHighlightsService.cs (1)
51Document document, int position, IImmutableSet<Document> documentsToSearch, HighlightingOptions options, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\IVSTypeScriptNavigateToSearchService.cs (3)
13IImmutableSet<string> KindsProvided { get; } 16Task<ImmutableArray<IVSTypeScriptNavigateToSearchResult>> SearchProjectAsync(Project project, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken); 17Task<ImmutableArray<IVSTypeScriptNavigateToSearchResult>> SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\VSTypeScriptDocumentHighlightsServiceBase.cs (2)
19Document document, int position, IImmutableSet<Document> documentsToSearch, CancellationToken cancellationToken); 22Document document, int position, IImmutableSet<Document> documentsToSearch, HighlightingOptions options, CancellationToken cancellationToken)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (3)
30public IImmutableSet<string> KindsProvided => _searchService?.KindsProvided ?? ImmutableHashSet<string>.Empty; 37IImmutableSet<string> kinds, 54IImmutableSet<string> kinds,
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (2)
62IImmutableSet<string> kinds, 103IImmutableSet<string> kinds,
NavigateTo\AbstractNavigateToSearchService.cs (2)
17public static readonly IImmutableSet<string> AllKinds = [ 31public IImmutableSet<string> KindsProvided { get; } = AllKinds;
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (2)
23IImmutableSet<string> kinds, 62IImmutableSet<string> kinds,
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (4)
23IImmutableSet<string> kinds, 50IImmutableSet<string> kinds, 70IImmutableSet<string> kinds, 111IImmutableSet<string> kinds,
NavigateTo\INavigateToSearchService.cs (5)
15IImmutableSet<string> KindsProvided { get; } 21IImmutableSet<string> kinds, 40IImmutableSet<string> kinds, 67IImmutableSet<string> kinds, 85IImmutableSet<string> kinds,
NavigateTo\NavigateToSearcher.cs (7)
48private readonly IImmutableSet<string> _kinds; 61IImmutableSet<string> kinds) 97IImmutableSet<string> kinds, 108IImmutableSet<string> kinds, 525public IImmutableSet<string> KindsProvided 531public Task SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, CancellationToken cancellationToken) 534public async Task SearchProjectsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
20private static readonly IImmutableSet<string> s_nonEnumerableReturningLinqMethodNames =
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
126INamedTypeSymbol constraintType, IImmutableSet<Project> projects)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Symbols\WorkspaceSymbolsHandler.cs (1)
30private static readonly IImmutableSet<string> s_supportedKinds = [
Microsoft.CodeAnalysis.UnitTests (44)
Collections\ImmutableSegmentedHashSetTest.cs (1)
215protected override System.Collections.Immutable.IImmutableSet<T> Empty<T>()
Collections\ImmutableSegmentedHashSetTest.nonnetstandard.cs (2)
40private static void EmptyTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> emptySet, T value, IEqualityComparer<T>? comparer) 53var reemptied = emptySet.Add(value).Clear();
Collections\ImmutableSetTest.cs (27)
54System.Collections.Immutable.IImmutableSet<int> emptySet = this.Empty<int>(); 59var set = emptySet; 68var setAfterRemoval = set.Remove(i); 76var set = this.Empty<int>().Add(5); 77var empty2 = this.Empty<int>(); 104var nonEmptySet = this.Empty<int>().Add(5); 162var originalSet = this.Empty<int>(); 163var nonEmptySet = originalSet.Add(5); 164var clearedSet = nonEmptySet.Clear(); 210var empty = this.Empty<string?>(); 211var set = empty.Add(null); 248protected abstract System.Collections.Immutable.IImmutableSet<T> Empty<T>(); 252protected System.Collections.Immutable.IImmutableSet<T> SetWith<T>(params T[] items) 257protected static void CustomSortTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> emptySet, bool matchOrder, T[] injectedValues, T[] expectedValues) 263var set = emptySet; 285protected static void EmptyTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> emptySet) 359private void SetCompareTestHelper<T>(Func<System.Collections.Immutable.IImmutableSet<T>, Func<IEnumerable<T>, bool>> operation, Func<ISet<T>, Func<IEnumerable<T>, bool>> baselineOperation, IEnumerable<Tuple<IEnumerable<T>, IEnumerable<T>, bool>> scenarios) 387private static void RemoveTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> set, params T[] values) 398var nextSet = set.Remove(value); 411private static void AddRemoveLoadTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> set, T[] data) 418var newSet = set.Add(value); 430var newSet = set.Remove(value); 436protected static void EnumeratorTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> emptySet, IComparer<T>? comparer, params T[] values) 438var set = emptySet; 483private static void AddTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> set, params T[] values) 493var enumerateAddSet = set.Union(values); 504var nextSet = set.Add(value);
Collections\ImmutableSetTest.nonnetstandard.cs (12)
38var set = this.Empty<double>(); 61protected static IComparer<T>? GetComparer<T>(System.Collections.Immutable.IImmutableSet<T> set) 77protected static IEqualityComparer<T>? GetEqualityComparer<T>(System.Collections.Immutable.IImmutableSet<T> set) 93protected static void TryGetValueTestHelper(System.Collections.Immutable.IImmutableSet<string> set) 110private static void ExceptTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> set, params T[] valuesToRemove) 118var actualSet = set.Except(valuesToRemove); 122private static void SymmetricExceptTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> set, params T[] otherCollection) 130var actualSet = set.SymmetricExcept(otherCollection); 134private static void IntersectTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> set, params T[] values) 144var actual = set.Intersect(values); 148private static void UnionTestHelper<T>(System.Collections.Immutable.IImmutableSet<T> set, params T[] values) 156var actual = set.Union(values);
Collections\ImmutablesTestBase.cs (2)
73protected static bool IsSame<T>(IImmutableSet<T> first, IImmutableSet<T> second)
Microsoft.CodeAnalysis.Workspaces (97)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
41Solution solution, ImmutableArray<ISymbol> symbols, IImmutableSet<Project> projects, CancellationToken cancellationToken)
FindSymbols\FindReferences\DependentTypeFinder.cs (3)
63IImmutableSet<Project>? projects, 449IImmutableSet<Project> projects, 480IImmutableSet<Project> projects,
FindSymbols\FindReferences\DependentTypeFinder_DerivedClasses.cs (1)
18IImmutableSet<Project>? projects,
FindSymbols\FindReferences\DependentTypeFinder_DerivedInterfaces.cs (1)
18IImmutableSet<Project>? projects,
FindSymbols\FindReferences\DependentTypeFinder_ImplementingTypes.cs (1)
17IImmutableSet<Project>? projects,
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (2)
21IImmutableSet<Project>? projects, 55IImmutableSet<Project>? projects,
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
31IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (10)
34ISymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken); 85IImmutableSet<Document>? scope, 118IImmutableSet<Document>? documents, 140Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken) 148IImmutableSet<Document>? documents, 330IImmutableSet<Document>? documents, 346IImmutableSet<Document>? documents, 361protected static Task FindDocumentsWithForEachStatementsAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken) 801TSymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents, 826IImmutableSet<Document>? documents, Action<Document, TData> processResult,
FindSymbols\FindReferences\Finders\ConstructorInitializerSymbolReferenceFinder.cs (1)
25IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (3)
37IImmutableSet<Document>? documents, 71private static Task FindDocumentsWithImplicitObjectCreationExpressionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken) 76IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\DestructorSymbolReferenceFinder.cs (1)
22IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (1)
42IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
30IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\ExplicitInterfaceMethodReferenceFinder.cs (1)
22IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\FieldSymbolReferenceFinder.cs (1)
33IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\IReferenceFinder.cs (1)
55Project project, IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
44IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\NamedTypeSymbolReferenceFinder.cs (2)
56IImmutableSet<Document>? documents, 83IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\NamespaceSymbolReferenceFinder.cs (1)
30IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\OperatorSymbolReferenceFinder.cs (2)
24IImmutableSet<Document>? documents, 37IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (4)
51IImmutableSet<Document>? documents, 90private static Task FindDocumentsWithDeconstructionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken) 93private static Task FindDocumentsWithAwaitExpressionAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken) 96private static Task FindDocumentsWithCollectionInitializersAsync<TData>(Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
28IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\PropertyAccessorSymbolReferenceFinder.cs (1)
36IImmutableSet<Document>? documents,
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (3)
111IImmutableSet<Document>? documents, 175Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken) 182Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, CancellationToken cancellationToken)
FindSymbols\FindReferences\Finders\TypeParameterSymbolReferenceFinder.cs (1)
22IImmutableSet<Document>? documents,
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (2)
26IImmutableSet<Document>? documents, 39private readonly IImmutableSet<Document>? _documents = documents;
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
22ISymbol originalSymbol, IImmutableSet<Document> documents, CancellationToken cancellationToken)
FindSymbols\SymbolFinder_Callers.cs (2)
33ISymbol symbol, Solution solution, IImmutableSet<Document>? documents, CancellationToken cancellationToken = default) 78IImmutableSet<Document>? documents,
FindSymbols\SymbolFinder_FindReferences_Current.cs (3)
25IImmutableSet<Document>? documents, 74IImmutableSet<Document>? documents, 89IImmutableSet<Document> documents,
FindSymbols\SymbolFinder_FindReferences_Legacy.cs (4)
61IImmutableSet<Document>? documents, 84IImmutableSet<Document>? documents, 100IImmutableSet<Document>? documents, 119IImmutableSet<Document> documents,
FindSymbols\SymbolFinder_Hierarchy.cs (19)
27ISymbol symbol, Solution solution, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 37ISymbol symbol, Solution solution, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 81ISymbol symbol, Solution solution, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 104IImmutableSet<Project>? projects, 192/// IImmutableSet{Project}, CancellationToken)"/>. 201INamedTypeSymbol type, Solution solution, IImmutableSet<Project>? projects, CancellationToken cancellationToken) 209/// IImmutableSet{Project}, CancellationToken)"/>. 219INamedTypeSymbol type, Solution solution, bool transitive = true, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 231/// <inheritdoc cref="FindDerivedClassesArrayAsync(INamedTypeSymbol, Solution, bool, IImmutableSet{Project}, CancellationToken)"/> 234INamedTypeSymbol type, Solution solution, bool transitive, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 255INamedTypeSymbol type, Solution solution, bool transitive = true, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 267/// <inheritdoc cref="FindDerivedInterfacesAsync(INamedTypeSymbol, Solution, bool, IImmutableSet{Project}, CancellationToken)"/> 270INamedTypeSymbol type, Solution solution, bool transitive, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 291INamedTypeSymbol type, Solution solution, bool transitive = true, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 303/// <inheritdoc cref="FindImplementationsAsync(INamedTypeSymbol, Solution, bool, IImmutableSet{Project}, CancellationToken)"/> 306INamedTypeSymbol type, Solution solution, bool transitive, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 320ISymbol symbol, Solution solution, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default) 339/// <inheritdoc cref="FindImplementationsAsync(ISymbol, Solution, IImmutableSet{Project}, CancellationToken)"/> 344ISymbol symbol, Solution solution, IImmutableSet<Project>? projects = null, CancellationToken cancellationToken = default)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (14)
323IImmutableSet<T> IImmutableSet<T>.Clear() 326IImmutableSet<T> IImmutableSet<T>.Add(T value) 329IImmutableSet<T> IImmutableSet<T>.Remove(T value) 332IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) 335IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) 338IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) 341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
184where TSet : IImmutableSet<TValue>
Workspace\Solution\ProjectDependencyGraph.cs (4)
165public IImmutableSet<ProjectId> GetProjectsThatThisProjectDirectlyDependsOn(ProjectId projectId) 178public IImmutableSet<ProjectId> GetProjectsThatDirectlyDependOnThisProject(ProjectId projectId) 243public IImmutableSet<ProjectId> GetProjectsThatThisProjectTransitivelyDependsOn(ProjectId projectId) 281var otherProjects = this.GetProjectsThatThisProjectDirectlyDependsOn(project);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
1119var transitiveDependencies = solution.GetProjectDependencyGraph().GetProjectsThatThisProjectTransitivelyDependsOn(this.ProjectState.Id);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (14)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (14)
323IImmutableSet<T> IImmutableSet<T>.Clear() 326IImmutableSet<T> IImmutableSet<T>.Add(T value) 329IImmutableSet<T> IImmutableSet<T>.Remove(T value) 332IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) 335IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) 338IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) 341IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\ProjectDependencyGraphTests.cs (3)
281var projectIds = projectDependencyGraph.GetProjectsThatThisProjectDirectlyDependsOn(projectId); 298var projectIds = projectDependencyGraph.GetProjectsThatThisProjectTransitivelyDependsOn(projectId); 649var projectIds = projectDependencyGraph.GetProjectsThatDirectlyDependOnThisProject(projectId);
Microsoft.VisualStudio.LanguageServices (23)
CallHierarchy\CallHierarchyItem.cs (1)
164internal void StartSearchWithDocuments(string categoryName, CallHierarchySearchScope searchScope, ICallHierarchySearchCallback callback, IImmutableSet<Document> documents)
CallHierarchy\Finders\AbstractCallFinder.cs (6)
31internal IImmutableSet<Document> Documents; 46internal void SetDocuments(IImmutableSet<Document> documents) 111var documents = this.Documents ?? IncludeDocuments(scope, project); 116private static IImmutableSet<Document> IncludeDocuments(CallHierarchySearchScope scope, Project project) 148protected virtual async Task SearchWorkerAsync(ISymbol symbol, Project project, ICallHierarchySearchCallback callback, IImmutableSet<Document> documents, CancellationToken cancellationToken) 180protected abstract Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken);
CallHierarchy\Finders\BaseMemberFinder.cs (1)
29protected override async Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken)
CallHierarchy\Finders\CallToOverrideFinder.cs (1)
25protected override async Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken)
CallHierarchy\Finders\FieldReferenceFinder.cs (1)
32protected override async Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken)
CallHierarchy\Finders\ImplementerFinder.cs (2)
35protected override Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken) 38protected override async Task SearchWorkerAsync(ISymbol symbol, Project project, ICallHierarchySearchCallback callback, IImmutableSet<Document> documents, CancellationToken cancellationToken)
CallHierarchy\Finders\InterfaceImplementationCallFinder.cs (1)
32protected override async Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken)
CallHierarchy\Finders\MethodCallFinder.cs (1)
35protected override async Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken)
CallHierarchy\Finders\OverridingMemberFinder.cs (2)
31protected override Task<IEnumerable<SymbolCallerInfo>> GetCallersAsync(ISymbol symbol, Project project, IImmutableSet<Document> documents, CancellationToken cancellationToken) 34protected override async Task SearchWorkerAsync(ISymbol symbol, Project project, ICallHierarchySearchCallback callback, IImmutableSet<Document> documents, CancellationToken cancellationToken)
NavigateTo\RoslynSearchItemsSource.cs (4)
23private static readonly IImmutableSet<string> s_typeKinds = ImmutableHashSet<string>.Empty 30private static readonly IImmutableSet<string> s_memberKinds = ImmutableHashSet<string>.Empty 37private static readonly IImmutableSet<string> s_allKinds = s_typeKinds.Union(s_memberKinds); 78var kinds = (includeTypeResults, includeMembersResults) switch
Snippets\AbstractSnippetInfoService.cs (3)
37protected IImmutableSet<string> snippetShortcuts = ImmutableHashSet.Create<string>(); 167var updatedSnippetShortcuts = GetShortcutsHashFromSnippets(updatedSnippets); 214protected static IImmutableSet<string> GetShortcutsHashFromSnippets(ImmutableArray<SnippetInfo> updatedSnippets)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (7)
CallHierarchy\CallHierarchyTestState.vb (7)
124Friend Function GetDocuments(documentNames As String()) As IImmutableSet(Of Document) 129Friend Sub SearchRoot(root As CallHierarchyItem, displayName As String, verify As Action(Of CallHierarchyItem), scope As CallHierarchySearchScope, Optional documents As IImmutableSet(Of Document) = Nothing) 134Friend Sub SearchRoot(root As CallHierarchyItem, displayName As String, verify As Action(Of ICallHierarchyNameItem), scope As CallHierarchySearchScope, Optional documents As IImmutableSet(Of Document) = Nothing) 139Private Shared Sub SearchRoot(root As CallHierarchyItem, displayName As String, callback As MockSearchCallback, scope As CallHierarchySearchScope, documents As IImmutableSet(Of Document)) 182Friend Sub VerifyResultName(root As CallHierarchyItem, searchCategory As String, expectedCallers As String(), Optional scope As CallHierarchySearchScope = CallHierarchySearchScope.EntireSolution, Optional documents As IImmutableSet(Of Document) = Nothing) 196Friend Sub VerifyResult(root As CallHierarchyItem, searchCategory As String, expectedCallers As String(), Optional scope As CallHierarchySearchScope = CallHierarchySearchScope.EntireSolution, Optional documents As IImmutableSet(Of Document) = Nothing) 211Friend Sub Navigate(root As CallHierarchyItem, searchCategory As String, callSite As String, Optional scope As CallHierarchySearchScope = CallHierarchySearchScope.EntireSolution, Optional documents As IImmutableSet(Of Document) = Nothing)
System.Collections.Immutable (71)
System\Collections\Immutable\IImmutableSet.cs (7)
23IImmutableSet<T> Clear(); 39IImmutableSet<T> Add(T value); 46IImmutableSet<T> Remove(T value); 67IImmutableSet<T> Intersect(IEnumerable<T> other); 74IImmutableSet<T> Except(IEnumerable<T> other); 81IImmutableSet<T> SymmetricExcept(IEnumerable<T> other); 88IImmutableSet<T> Union(IEnumerable<T> other);
System\Collections\Immutable\ImmutableHashSet_1.cs (32)
82/// See the <see cref="IImmutableSet{T}"/> interface. 90/// See the <see cref="IImmutableSet{T}"/> interface. 98/// See the <see cref="IImmutableSet{T}"/> interface. 106/// See the <see cref="IImmutableSet{T}"/> interface. 116/// See the <see cref="IImmutableSet{T}"/> interface. 118IImmutableSet<T> IImmutableSet<T>.Clear() 179/// See the <see cref="IImmutableSet{T}"/> interface. 188/// See the <see cref="IImmutableSet{T}"/> interface. 222/// See the <see cref="IImmutableSet{T}"/> interface. 232/// See the <see cref="IImmutableSet{T}"/> interface. 240/// See the <see cref="IImmutableSet{T}"/> interface. 251/// See the <see cref="IImmutableSet{T}"/> interface. 356/// See the <see cref="IImmutableSet{T}"/> interface. 358IImmutableSet<T> IImmutableSet<T>.Add(T item) 364/// See the <see cref="IImmutableSet{T}"/> interface. 366IImmutableSet<T> IImmutableSet<T>.Remove(T item) 372/// See the <see cref="IImmutableSet{T}"/> interface. 374IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other) 380/// See the <see cref="IImmutableSet{T}"/> interface. 382IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) 388/// See the <see cref="IImmutableSet{T}"/> interface. 390IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) 400IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) 406/// See the <see cref="IImmutableSet{T}"/> interface. 414/// See the <see cref="IImmutableSet{T}"/> interface.
System\Collections\Immutable\ImmutableSortedSet_1.cs (32)
77/// See the <see cref="IImmutableSet{T}"/> interface. 105/// See the <see cref="IImmutableSet{T}"/> interface. 113/// See the <see cref="IImmutableSet{T}"/> interface. 123/// See the <see cref="IImmutableSet{T}"/> interface. 177/// See the <see cref="IImmutableSet{T}"/> interface. 185/// See the <see cref="IImmutableSet{T}"/> interface. 220/// See the <see cref="IImmutableSet{T}"/> interface. 240/// See the <see cref="IImmutableSet{T}"/> interface. 288/// See the <see cref="IImmutableSet{T}"/> interface. 328/// See the <see cref="IImmutableSet{T}"/> interface. 345/// See the <see cref="IImmutableSet{T}"/> interface. 592/// See the <see cref="IImmutableSet{T}"/> interface. 600/// See the <see cref="IImmutableSet{T}"/> interface. 602IImmutableSet<T> IImmutableSet<T>.Clear() 608/// See the <see cref="IImmutableSet{T}"/> interface. 610IImmutableSet<T> IImmutableSet<T>.Add(T value) 616/// See the <see cref="IImmutableSet{T}"/> interface. 618IImmutableSet<T> IImmutableSet<T>.Remove(T value) 624/// See the <see cref="IImmutableSet{T}"/> interface. 626IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) 632/// See the <see cref="IImmutableSet{T}"/> interface. 634IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) 644IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) 650/// See the <see cref="IImmutableSet{T}"/> interface. 652IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other)
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
109public INamedTypeSymbol? IImmutableSetType => GetOrResolveType(typeof(IImmutableSet<>), ref _IImmutableSetType);