9 implementations of IImmutableSet
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.Collections.Package (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
System.Collections.Immutable (4)
379 references to IImmutableSet
Aspire.Hosting.Dapr (1)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Http.Extensions (5)
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.CodeStyle (16)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.Collections.Package (14)
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)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (8)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Microsoft.CodeAnalysis.Features (42)
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,
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)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.UnitTests (44)
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);
Microsoft.CodeAnalysis.Workspaces (97)
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\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\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\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)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (14)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Microsoft.VisualStudio.LanguageServices (23)
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.Text.Json.SourceGeneration (1)