5 instantiations of ImmutableList
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableList_1.cs (5)
24public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); 241return new ImmutableList<T>(Node.NodeTreeFromList(items)); 1100: new ImmutableList<T>(root); 1151return root.IsEmpty ? this.Clear() : new ImmutableList<T>(root); 1187return new ImmutableList<T>(root);
955 references to ImmutableList
Aspire.Dashboard (2)
Components\Pages\ConsoleLogs.razor.cs (2)
69private ImmutableList<SelectViewModel<ResourceTypeDetails>>? _resources; 232internal static ImmutableList<SelectViewModel<ResourceTypeDetails>> GetConsoleLogResourceSelectViewModels(
Aspire.Dashboard.Tests (1)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (1)
42var viewModels = Components.Pages.ConsoleLogs.GetConsoleLogResourceSelectViewModels(resourcesByName, noSelectionViewModel, unknownStateText);
Aspire.Hosting.Dapr (1)
DaprSidecarOptions.cs (1)
66public IImmutableList<string> Command { get; init; } = ImmutableList<string>.Empty;
Microsoft.AspNetCore.App.Analyzers (10)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (4)
190protected static int ConvertTextAtIndexToRune(string tokenText, int index, ImmutableList<VirtualChar>.Builder result, int offset) 193protected static int ConvertTextAtIndexToRune(SourceText tokenText, int index, ImmutableList<VirtualChar>.Builder result, int offset) 197T tokenText, int index, TTextInfo info, ImmutableList<VirtualChar>.Builder result, int offset) 230ImmutableList<VirtualChar>.Builder result)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
314private static void ConvertCharactersToRunes(List<(char ch, TextSpan span)> charResults, ImmutableList<VirtualChar>.Builder runeResults)
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (3)
40private readonly ImmutableList<VirtualChar> _array; 42public ImmutableSegmentedListChunk(ImmutableList<VirtualChar> array) 77internal static int BinarySearch<TElement, TValue>(ImmutableList<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
Infrastructure\VirtualChars\VirtualCharSequence.cs (2)
30public static readonly VirtualCharSequence Empty = Create(ImmutableList<VirtualChar>.Empty); 32public static VirtualCharSequence Create(ImmutableList<VirtualChar> virtualChars)
Microsoft.AspNetCore.Components.Endpoints (14)
FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (10)
8internal sealed class ImmutableListBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableList<TElement>, ImmutableList<TElement>.Builder, TElement> 10public static ImmutableList<TElement>.Builder CreateBuffer() => ImmutableList.CreateBuilder<TElement>(); 12public static ImmutableList<TElement>.Builder Add(ref ImmutableList<TElement>.Builder buffer, TElement element) 18public static ImmutableList<TElement> ToResult(ImmutableList<TElement>.Builder buffer) => buffer.ToImmutable(); 26ImmutableList<TElement>, 28ImmutableList<TElement>.Builder, 30ImmutableList<TElement>.Builder,
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (4)
57var _ when type == (typeof(ImmutableList<TElement>)) => true, 151var _ when type.IsAssignableTo(typeof(ImmutableList<TElement>)) => 152new CollectionConverter<ImmutableList<TElement>, ImmutableListBufferAdapter<TElement>, ImmutableList<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Binding\FormDataMapperTests.cs (5)
817var expected = ImmutableList.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 818CanDeserialize_Collection<ImmutableList<int>, ImmutableList<int>, int>(expected); 857var expected = ImmutableList.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 858CanDeserialize_Collection<IImmutableList<int>, ImmutableList<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (14)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (10)
8internal sealed class ImmutableListBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableList<TElement>, ImmutableList<TElement>.Builder, TElement> 10public static ImmutableList<TElement>.Builder CreateBuffer() => ImmutableList.CreateBuilder<TElement>(); 12public static ImmutableList<TElement>.Builder Add(ref ImmutableList<TElement>.Builder buffer, TElement element) 18public static ImmutableList<TElement> ToResult(ImmutableList<TElement>.Builder buffer) => buffer.ToImmutable(); 26ImmutableList<TElement>, 28ImmutableList<TElement>.Builder, 30ImmutableList<TElement>.Builder,
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (4)
57var _ when type == (typeof(ImmutableList<TElement>)) => true, 151var _ when type.IsAssignableTo(typeof(ImmutableList<TElement>)) => 152new CollectionConverter<ImmutableList<TElement>, ImmutableListBufferAdapter<TElement>, ImmutableList<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.Build (50)
BackEnd\BuildManager\BuildManager.cs (4)
1941IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode = projectGraph.GetTargetLists(submission.BuildRequestData.TargetNames); 1970static void DumpGraph(ProjectGraph graph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>>? targetList = null) 1985IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode, 2015var targetList = targetsPerNode[node];
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
402var excludes = ImmutableList<string>.Empty.ToBuilder();
Definition\Project.cs (1)
2534private ImmutableList<IMSBuildGlob>.Builder _globs;
Evaluation\LazyItemEvaluator.cs (2)
257public ImmutableList<I> GetMatchedItems(ImmutableHashSet<string> globsToIgnore) 259ImmutableList<I>.Builder items = ImmutableList.CreateBuilder<I>();
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
43ImmutableList<string>.Builder excludePatterns = ImmutableList.CreateBuilder<string>(); 145private static ISet<string> BuildExcludePatternsForGlobs(ImmutableHashSet<string> globsToIgnore, ImmutableList<string>.Builder excludePatterns)
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (5)
30private ImmutableList<ItemData>.Builder _listBuilder; 37internal Builder(ImmutableList<ItemData>.Builder listBuilder) 44private ImmutableList<ItemData>.Enumerator GetEnumerator() => _listBuilder.GetEnumerator(); 199private ImmutableList<ItemData> _list; 201private OrderedItemDataCollection(ImmutableList<ItemData> list)
Evaluation\LazyItemEvaluator.RemoveOperation.cs (2)
19private readonly ImmutableList<string> _matchOnMetadata; 114public ImmutableList<string>.Builder MatchOnMetadata { get; } = ImmutableList.CreateBuilder<string>();
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
20private ImmutableList<ItemBatchingContext>.Builder _itemsToUpdate = null;
Globbing\Visitor\ParsedGlobCollector.cs (2)
12private readonly ImmutableList<MSBuildGlob>.Builder _collectedGlobs = ImmutableList.CreateBuilder<MSBuildGlob>(); 13public ImmutableList<MSBuildGlob> CollectedGlobs => _collectedGlobs.ToImmutable();
Graph\ProjectGraph.cs (16)
491internal string ToDot(IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode = null) 499IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode = null) 609public IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> GetTargetLists(ICollection<string> entryProjectTargets) 614var targetLists = ProjectNodes.ToDictionary(node => node, node => ImmutableList<string>.Empty); 624var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.DefaultTargets); 639var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.DefaultTargets); 712var requestedTargets = buildRequest.RequestedTargets; 728var applicableTargets = targetsToPropagate.GetApplicableTargetsForReference(referenceNode); 735var expandedTargets = ExpandDefaultTargets( 752var entriesToUpdate = new List<KeyValuePair<ProjectGraphNode, ImmutableList<string>>>(); 755var targetList = pair.Value; 774entriesToUpdate.Add(new KeyValuePair<ProjectGraphNode, ImmutableList<string>>(pair.Key, targetList)); 800private static ImmutableList<string> ExpandDefaultTargets(ImmutableList<string> targets, List<string> defaultTargets, ProjectItemInstance graphEdge) 866public ProjectGraphBuildRequest(ProjectGraphNode node, ImmutableList<string> targets) 874public ImmutableList<string> RequestedTargets { get; }
Graph\ProjectInterpretation.cs (14)
47private static readonly ImmutableList<GlobalPropertiesModifier> ModifierForNonMultitargetingNodes = [(GlobalPropertiesModifier)ProjectReferenceGlobalPropertiesModifier]; 315var newUndefineProperties = defaultParts.UndefineProperties; 347public ImmutableList<string> UndefineProperties { get; } 352ImmutableList<string> undefineProperties) 469private readonly ImmutableList<TargetSpecification> _outerBuildTargets; 470private readonly ImmutableList<TargetSpecification> _allTargets; 472private TargetsToPropagate(ImmutableList<TargetSpecification> outerBuildTargets, ImmutableList<TargetSpecification> nonOuterBuildTargets) 492public static TargetsToPropagate FromProjectAndEntryTargets(ProjectInstance project, ImmutableList<string> entryTargets) 494ImmutableList<TargetSpecification>.Builder targetsForOuterBuild = ImmutableList.CreateBuilder<TargetSpecification>(); 495ImmutableList<TargetSpecification>.Builder targetsForInnerBuild = ImmutableList.CreateBuilder<TargetSpecification>(); 525public ImmutableList<string> GetApplicableTargetsForReference(ProjectGraphNode projectGraphNode) 527ImmutableList<string> RemoveNonexistentTargetsIfSkippable(ImmutableList<TargetSpecification> targets)
Microsoft.Build.Engine.UnitTests (25)
Graph\ProjectGraph_Tests.cs (24)
927IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 955IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 986IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 1008IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1026IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "Foo" }); 1049IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1072IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 1115IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1156IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1190IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1261IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(new[] { "A" }); 1362IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1375void AssertMultitargetingNode(int projectNumber, ProjectGraph projectGraph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists, string[] outerBuildTargets, string[] nonOuterBuildTargets) 1397IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1420IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1450IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1507IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(entryProjectTargets: null); 1552IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(entryProjectTargets: new[] { "Build" }); 1602IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(entryProjectTargets: new[] { "Build" }); 1633IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(null); 2696IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2738IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2797IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2877IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(entryTargets);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
432IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetListsPerNode = null,
Microsoft.Build.Framework (87)
ImmutableSegmentedDictionary`2.cs (1)
23/// <see cref="ImmutableList{T}"/> is applicable.</para>
ImmutableSegmentedList.cs (1)
42/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
ImmutableSegmentedList`1.cs (47)
19/// best for <see cref="ImmutableList{T}"/>.</para> 28/// <description><see cref="ImmutableList{T}"/> Complexity</description> 73/// <inheritdoc cref="ImmutableList{T}.Empty"/> 85/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 124/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 138/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 158/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 186/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 190/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 194/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 198/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 205/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 209/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 216/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 220/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 224/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 228/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 232/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 236/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 240/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 244/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 248/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 252/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 267/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 282/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 286/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 290/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 307/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 322/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 358/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 370/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 382/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 392/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 401/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 425/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 449/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 465/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 479/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 493/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 505/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 513/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 522/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 536/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 550/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 569/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 578/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 597/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
ImmutableSegmentedList`1+Builder.cs (38)
48/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 55/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 59/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 63/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 67/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 77/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 81/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 88/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 92/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 96/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 100/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 104/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 108/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 112/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 116/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 120/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 124/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 128/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 132/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 136/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 140/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 147/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 151/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 155/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 162/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 166/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 170/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 174/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 178/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 185/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 192/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 196/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 200/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 204/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 208/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 212/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 220/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis (89)
InternalUtilities\ImmutableListExtensions.cs (2)
12internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this T[]? items) 22internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this IEnumerable<T>? items)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
23/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
42/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (47)
19/// best for <see cref="ImmutableList{T}"/>.</para> 28/// <description><see cref="ImmutableList{T}"/> Complexity</description> 73/// <inheritdoc cref="ImmutableList{T}.Empty"/> 85/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 124/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 138/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 158/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 186/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 190/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 194/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 198/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 205/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 209/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 216/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 220/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 224/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 228/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 232/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 236/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 240/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 244/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 248/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 252/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 267/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 282/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 286/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 290/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 307/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 322/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 358/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 370/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 382/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 392/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 401/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 425/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 449/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 465/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 479/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 493/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 505/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 513/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 522/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 536/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 550/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 569/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 578/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 597/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (38)
48/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 55/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 59/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 63/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 67/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 77/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 81/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 88/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 92/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 96/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 100/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 104/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 108/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 112/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 116/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 120/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 124/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 128/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 132/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 136/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 140/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 147/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 151/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 155/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 162/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 166/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 170/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 174/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 178/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 185/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 192/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 196/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 200/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 204/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 208/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 212/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 220/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.CodeStyle (90)
src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (2)
12internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this T[]? items) 22internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this IEnumerable<T>? items)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
23/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
42/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (47)
19/// best for <see cref="ImmutableList{T}"/>.</para> 28/// <description><see cref="ImmutableList{T}"/> Complexity</description> 73/// <inheritdoc cref="ImmutableList{T}.Empty"/> 85/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 124/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 138/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 158/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 186/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 190/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 194/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 198/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 205/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 209/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 216/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 220/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 224/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 228/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 232/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 236/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 240/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 244/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 248/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 252/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 267/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 282/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 286/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 290/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 307/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 322/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 358/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 370/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 382/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 392/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 401/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 425/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 449/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 465/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 479/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 493/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 505/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 513/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 522/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 536/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 550/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 569/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 578/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 597/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (38)
48/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 55/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 59/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 63/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 67/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 77/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 81/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 88/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 92/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 96/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 100/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 104/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 108/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 112/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 116/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 120/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 124/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 128/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 132/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 136/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 140/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 147/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 151/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 155/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 162/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 166/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 170/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 174/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 178/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 185/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 192/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 196/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 200/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 204/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 208/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 212/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 220/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
55private ImmutableList<WeakReference<Box>> _items = [];
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
30protected abstract ImmutableList<TSymbolSyntax> GetVariableDeclarators(TFieldDeclarationSyntax declaration); 65var declarationDeclarators = GetVariableDeclarators(fieldDeclaration);
Microsoft.CodeAnalysis.Collections.Package (87)
ImmutableSegmentedDictionary`2.cs (1)
23/// <see cref="ImmutableList{T}"/> is applicable.</para>
ImmutableSegmentedList.cs (1)
42/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
ImmutableSegmentedList`1.cs (47)
19/// best for <see cref="ImmutableList{T}"/>.</para> 28/// <description><see cref="ImmutableList{T}"/> Complexity</description> 73/// <inheritdoc cref="ImmutableList{T}.Empty"/> 85/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 124/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 138/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 158/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 186/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 190/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 194/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 198/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 205/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 209/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 216/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 220/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 224/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 228/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 232/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 236/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 240/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 244/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 248/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 252/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 267/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 282/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 286/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 290/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 307/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 322/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 358/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 370/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 382/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 392/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 401/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 425/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 449/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 465/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 479/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 493/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 505/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 513/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 522/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 536/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 550/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 569/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 578/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 597/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
ImmutableSegmentedList`1+Builder.cs (38)
48/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 55/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 59/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 63/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 67/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 77/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 81/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 88/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 92/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 96/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 100/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 104/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 108/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 112/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 116/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 120/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 124/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 128/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 132/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 136/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 140/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 147/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 151/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 155/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 162/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 166/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 170/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 174/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 178/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 185/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 192/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 196/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 200/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 204/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 208/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 212/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 220/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
59nameof(ImmutableList<int>),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
319var separators = orderByClauseSyntax.Orderings.GetSeparators().ToImmutableList();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeFieldReadonly\CSharpMakeFieldReadonlyCodeFixProvider.cs (1)
23protected override ImmutableList<VariableDeclaratorSyntax> GetVariableDeclarators(FieldDeclarationSyntax fieldDeclaration)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
CodeGen\CodeGenCapturing.cs (19)
122return GenerateAll(sum, 0, ImmutableList<int>.Empty); 124IEnumerable<ImmutableList<int>> GenerateAll( 127ImmutableList<int> setsSoFar) 131var newSets = setsSoFar.Add(i); 138foreach (var captures in GenerateAll(remainingSum - i, 154ImmutableList<int>.Empty.Add(0), 155ImmutableList<int>.Empty.Add(1), 156ImmutableList<int>.Empty.Add(2), 157ImmutableList<int>.Empty.Add(3) 161ImmutableList<int>.Empty.Add(0).Add(0), 162ImmutableList<int>.Empty.Add(0).Add(1), 163ImmutableList<int>.Empty.Add(0).Add(2), 164ImmutableList<int>.Empty.Add(0).Add(3), 165ImmutableList<int>.Empty.Add(1).Add(0), 166ImmutableList<int>.Empty.Add(1).Add(1), 167ImmutableList<int>.Empty.Add(1).Add(2), 168ImmutableList<int>.Empty.Add(2).Add(0), 169ImmutableList<int>.Empty.Add(2).Add(1), 170ImmutableList<int>.Empty.Add(3).Add(0)
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.cs (1)
31var builder = (ImmutableList<SyntaxNode>.Builder?)null;
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
59nameof(ImmutableList<int>),
src\Analyzers\CSharp\CodeFixes\MakeFieldReadonly\CSharpMakeFieldReadonlyCodeFixProvider.cs (1)
23protected override ImmutableList<VariableDeclaratorSyntax> GetVariableDeclarators(FieldDeclarationSyntax fieldDeclaration)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
319var separators = orderByClauseSyntax.Orderings.GetSeparators().ToImmutableList();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
TestExtensionErrorHandler.cs (2)
20public ImmutableList<Exception> Exceptions { get; private set; } = ImmutableList<Exception>.Empty;
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
30protected abstract ImmutableList<TSymbolSyntax> GetVariableDeclarators(TFieldDeclarationSyntax declaration); 65var declarationDeclarators = GetVariableDeclarators(fieldDeclaration);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Analyzers\VisualBasic\CodeFixes\MakeFieldReadonly\VisualBasicMakeFieldReadonlyCodeFixProvider.vb (1)
22Protected Overrides Function GetVariableDeclarators(declaration As FieldDeclarationSyntax) As ImmutableList(Of ModifiedIdentifierSyntax)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (8)
CodeGen\CodeGenNullable.vb (8)
6723Public Shared Function BuildCondition(shape As TreeNode, operators As ImmutableList(Of SyntaxKind), operands As ImmutableList(Of ExpressionSyntax)) As ExpressionSyntax 6731Private Shared Function BuildConditionWorker(shape As TreeNode, ByRef operators As ImmutableList(Of SyntaxKind), ByRef operands As ImmutableList(Of ExpressionSyntax)) As ExpressionSyntax 6773Shared Iterator Function OperatorSets(count As Integer) As IEnumerable(Of ImmutableList(Of SyntaxKind)) 6776Yield ImmutableList(Of SyntaxKind).Empty 6785Shared Iterator Function OperandSets(count As Integer) As IEnumerable(Of ImmutableList(Of ExpressionSyntax)) 6788Yield ImmutableList(Of ExpressionSyntax).Empty
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.vb (2)
33Dim builder As ImmutableList(Of SyntaxNode).Builder = Nothing 44Return If(builder Is Nothing, ImmutableList(Of SyntaxNode).Empty, builder.ToImmutable())
src\Analyzers\VisualBasic\CodeFixes\MakeFieldReadonly\VisualBasicMakeFieldReadonlyCodeFixProvider.vb (1)
22Protected Overrides Function GetVariableDeclarators(declaration As FieldDeclarationSyntax) As ImmutableList(Of ModifiedIdentifierSyntax)
Microsoft.CodeAnalysis.Workspaces (103)
src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (2)
12internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this T[]? items) 22internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this IEnumerable<T>? items)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
23/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
42/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (47)
19/// best for <see cref="ImmutableList{T}"/>.</para> 28/// <description><see cref="ImmutableList{T}"/> Complexity</description> 73/// <inheritdoc cref="ImmutableList{T}.Empty"/> 85/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 124/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 138/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 158/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 186/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 190/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 194/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 198/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 205/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 209/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 216/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 220/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 224/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 228/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 232/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 236/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 240/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 244/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 248/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 252/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 267/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 282/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 286/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 290/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 307/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 322/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 358/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 370/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 382/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 392/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 401/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 425/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 449/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 465/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 479/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 493/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 505/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 513/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 522/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 536/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 550/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 569/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 578/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 597/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (38)
48/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 55/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 59/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 63/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 67/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 77/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 81/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 88/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 92/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 96/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 100/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 104/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 108/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 112/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 116/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 120/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 124/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 128/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 132/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 136/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 140/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 147/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 151/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 155/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 162/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 166/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 170/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 174/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 178/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 185/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 192/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 196/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 200/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 204/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 208/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 212/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 220/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
64private ImmutableList<DocumentId>? _orderedDocumentsInBatch = null; 563ImmutableList<DocumentId>? orderedDocumentsInBatch,
Workspace\Solution\ProjectState.cs (1)
1015public ProjectState UpdateDocumentsOrder(ImmutableList<DocumentId> documentIds)
Workspace\Solution\Solution.cs (1)
544public Solution WithProjectDocumentsOrder(ProjectId projectId, ImmutableList<DocumentId> documentIds)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (3)
81public ImmutableList<TranslationAction> PendingTranslationActions { get; } 90ImmutableList<TranslationAction> pendingTranslationActions) 115ImmutableList<TranslationAction> pendingTranslationActions)
Workspace\Solution\SolutionCompilationState.cs (1)
543ProjectId projectId, ImmutableList<DocumentId> documentIds)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
162ImmutableList<TranslationAction> GetPendingTranslationActions(CompilationTrackerState state)
Workspace\Solution\SolutionState.cs (1)
786public StateChange WithProjectDocumentsOrder(ProjectId projectId, ImmutableList<DocumentId> documentIds)
Workspace\Solution\TextDocumentStates.cs (4)
51private readonly ImmutableList<DocumentId> _ids; 55ImmutableList<DocumentId> ids, 80public TextDocumentStates<TState> WithCompilationOrder(ImmutableList<DocumentId> ids) 261private static IEnumerable<DocumentId> Except(ImmutableList<DocumentId> ids, ImmutableSortedDictionary<DocumentId, TState> map)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\DiagnosticReporter.cs (1)
14internal ImmutableList<WorkspaceDiagnostic> Diagnostics;
MSBuild\MSBuildWorkspace.cs (1)
105public ImmutableList<WorkspaceDiagnostic> Diagnostics => _reporter.Diagnostics;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (89)
src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (2)
12internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this T[]? items) 22internal static ImmutableList<T> ToImmutableListOrEmpty<T>(this IEnumerable<T>? items)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
23/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\ImmutableSegmentedList.cs (1)
42/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (47)
19/// best for <see cref="ImmutableList{T}"/>.</para> 28/// <description><see cref="ImmutableList{T}"/> Complexity</description> 73/// <inheritdoc cref="ImmutableList{T}.Empty"/> 85/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 124/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 138/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 158/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 186/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 190/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 194/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 198/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 205/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 209/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 216/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 220/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 224/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 228/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 232/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 236/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 240/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 244/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 248/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 252/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 267/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 282/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 286/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 290/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 307/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 322/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 358/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 370/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 382/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 392/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 401/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 425/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 449/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 465/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 479/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 493/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 505/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 513/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 522/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 536/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 550/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 569/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 578/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 597/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (38)
48/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 55/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 59/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 63/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 67/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 77/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 81/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 88/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 92/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 96/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 100/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 104/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 108/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 112/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 116/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 120/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 124/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 128/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 132/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 136/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 140/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 147/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 151/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 155/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 162/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 166/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 170/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 174/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 178/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 185/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 192/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 196/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 200/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 204/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 208/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 212/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 220/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
ITestErrorHandler.cs (1)
16ImmutableList<Exception> Exceptions { get; }
MEF\UseExportProviderAttribute.cs (1)
166var exceptions = testErrorHandler.Exceptions;
Options\OptionsTestInfo.cs (1)
14internal readonly record struct OptionsTestInfo(IOption2 Option, ImmutableList<(string namespaceName, string qualifiedName, bool isPublic, IOption2 option)> Accessors)
Microsoft.DotNet.Build.Tasks.Feed (9)
src\model\SetupTargetFeedConfigV3.cs (3)
27private ImmutableList<string> FilesToExclude { get; } 50ImmutableList<string> filesToExclude = null, 60FilesToExclude = filesToExclude ?? ImmutableList<string>.Empty;
src\model\TargetChannelConfig.cs (4)
36public ImmutableList<TargetFeedSpecification> TargetFeeds { get; } 45public ImmutableList<string> FilenamesToExclude { get; } 65FilenamesToExclude = filenamesToExclude?.ToImmutableList() ?? ImmutableList<string>.Empty; 145public ImmutableList<TargetFeedContentType> ContentTypes { get; }
src\model\TargetFeedConfig.cs (2)
61public ImmutableList<string> FilenamesToExclude { get; } 88FilenamesToExclude = filenamesToExclude?.ToImmutableList() ?? ImmutableList<string>.Empty;
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
SetupTargetFeedConfigV3Tests.cs (1)
37private static ImmutableList<string> FilesToExclude = ImmutableList.Create(
Microsoft.DotNet.Internal.DependencyInjection.Testing (2)
DependencyInjectionValidation.cs (2)
16private static readonly ImmutableList<string> s_exemptTypes = ImmutableList.Create( 28private static readonly ImmutableList<string> s_exemptNamespaces = ImmutableList.Create(
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
124ImmutableList<MethodGroupModel> methodGroups = document.Paths
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
800yield return new TestData<ImmutableList<string>>(ImmutableList.Create("one", "two", "three"), """{"type":["array","null"],"items":{"type":["string","null"]}}"""); 1258[JsonSerializable(typeof(ImmutableList<string>))]
Microsoft.VisualStudio.IntegrationTest.Setup (1)
TestTraceListener.cs (1)
15private ImmutableList<Exception> _failures = [];
Microsoft.VisualStudio.LanguageServices (6)
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (2)
25private ImmutableList<SinkManager> _managers = ImmutableList<SinkManager>.Empty;
Workspace\VisualStudioActiveDocumentTracker.cs (4)
40private ImmutableList<FrameListener> _visibleFrames = ImmutableList<FrameListener>.Empty; 95var visibleFramesSnapshot = _visibleFrames; 121var visibleFramesSnapshot = _visibleFrames;
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (7)
MockVsFileChangeEx.vb (7)
18Private _watchedFiles As ImmutableList(Of WatchedEntity) = ImmutableList(Of WatchedEntity).Empty 19Private _watchedDirectories As ImmutableList(Of WatchedEntity) = ImmutableList(Of WatchedEntity).Empty 40Private Function AdviseDirectoryOrFileChange(ByRef watchedList As ImmutableList(Of WatchedEntity), 99Private Shared Sub FireUpdate(filename As String, watchedFiles As ImmutableList(Of WatchedEntity), watchedDirectories As ImmutableList(Of WatchedEntity))
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
800yield return new TestData<ImmutableList<string>>(ImmutableList.Create("one", "two", "three"), """{"type":["array","null"],"items":{"type":["string","null"]}}"""); 1258[JsonSerializable(typeof(ImmutableList<string>))]
System.Collections.Immutable (206)
System\Collections\Immutable\IImmutableList.cs (6)
27/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 31/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 47/// elements in the <see cref="ImmutableList{T}"/> that starts at index and 54/// last occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 59/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 70/// in the <see cref="ImmutableList{T}"/> that contains <paramref name="count"/> number of elements
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (7)
34private readonly ImmutableList<KeyValuePair<TKey, TValue>>.Node _additionalElements; 41private HashBucket(KeyValuePair<TKey, TValue> firstElement, ImmutableList<KeyValuePair<TKey, TValue>>.Node? additionalElements = null) 44_additionalElements = additionalElements ?? ImmutableList<KeyValuePair<TKey, TValue>>.Node.EmptyNode; 77internal ImmutableList<KeyValuePair<TKey, TValue>>.Node AdditionalElements 351private ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator _additionalEnumerator; 361_additionalEnumerator = default(ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator); 442_additionalEnumerator = new ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator(_bucket._additionalElements);
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (6)
49private readonly ImmutableList<T>.Node _additionalElements; 56private HashBucket(T firstElement, ImmutableList<T>.Node? additionalElements = null) 59_additionalElements = additionalElements ?? ImmutableList<T>.Node.EmptyNode; 271private ImmutableList<T>.Enumerator _additionalEnumerator; 282_additionalEnumerator = default(ImmutableList<T>.Enumerator); 365_additionalEnumerator = new ImmutableList<T>.Enumerator(_bucket._additionalElements);
System\Collections\Immutable\ImmutableList.cs (16)
9/// A set of initialization methods for instances of <see cref="ImmutableList{T}"/>. 18public static ImmutableList<T> Create<T>() => ImmutableList<T>.Empty; 26public static ImmutableList<T> Create<T>(T item) => ImmutableList<T>.Empty.Add(item); 34public static ImmutableList<T> CreateRange<T>(IEnumerable<T> items) => ImmutableList<T>.Empty.AddRange(items); 42public static ImmutableList<T> Create<T>(params T[] items) 55public static ImmutableList<T> Create<T>(params ReadOnlySpan<T> items) => ImmutableList<T>.Empty.AddRange(items); 62public static ImmutableList<T>.Builder CreateBuilder<T>() => Create<T>().ToBuilder(); 70public static ImmutableList<TSource> ToImmutableList<TSource>(this IEnumerable<TSource> source) 72if (source is ImmutableList<TSource> existingList) 77return ImmutableList<TSource>.Empty.AddRange(source); 85public static ImmutableList<TSource> ToImmutableList<TSource>(this ImmutableList<TSource>.Builder builder)
System\Collections\Immutable\ImmutableList_1.Builder.cs (13)
42private ImmutableList<T>? _immutable; 58internal Builder(ImmutableList<T> list) 191this.Root = ImmutableList<T>.Node.EmptyNode; 223public ImmutableList<T>.Enumerator GetEnumerator() 324public ImmutableList<T> GetRange(int index, int count) 329return ImmutableList<T>.WrapNode(Node.NodeTreeFromList(this, index, count)); 347public ImmutableList<TOutput> ConvertAll<TOutput>(Func<T, TOutput> converter) 350return ImmutableList<TOutput>.WrapNode(_root.ConvertAll(converter)); 395public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 1011public ImmutableList<T> ToImmutable() 1016return _immutable ??= ImmutableList<T>.WrapNode(this.Root); 1186private readonly ImmutableList<T>.Builder _list; 1197public ImmutableListBuilderDebuggerProxy(ImmutableList<T>.Builder builder)
System\Collections\Immutable\ImmutableList_1.cs (93)
19public sealed partial class ImmutableList<T> : IImmutableList<T>, IList<T>, IList, IStrongEnumerable<T, ImmutableList<T>.Enumerator> 24public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); 32/// Initializes a new instance of the <see cref="ImmutableList{T}"/> class. 37/// Initializes a new instance of the <see cref="ImmutableList{T}"/> class. 51public ImmutableList<T> Clear() => Empty; 54/// Searches the entire sorted <see cref="ImmutableList{T}"/> for an element 59/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 62/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 72/// Searches the entire sorted <see cref="ImmutableList{T}"/> for an element 81/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 84/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 94/// Searches a range of elements in the sorted <see cref="ImmutableList{T}"/> 106/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 109/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 115/// <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in the <see cref="ImmutableList{T}"/>. 205public ImmutableList<T> Add(T value) 207ImmutableList<T>.Node result = _root.Add(value); 214public ImmutableList<T> AddRange(IEnumerable<T> items) 224ImmutableList<T>.Node result = _root.AddRange(items); 232internal ImmutableList<T> AddRange(ReadOnlySpan<T> items) 257public ImmutableList<T> Insert(int index, T item) 266public ImmutableList<T> InsertRange(int index, IEnumerable<T> items) 271ImmutableList<T>.Node result = _root.InsertRange(index, items); 279public ImmutableList<T> Remove(T value) => this.Remove(value, EqualityComparer<T>.Default); 284public ImmutableList<T> Remove(T value, IEqualityComparer<T>? equalityComparer) 296public ImmutableList<T> RemoveRange(int index, int count) 301ImmutableList<T>.Node result = _root; 318public ImmutableList<T> RemoveRange(IEnumerable<T> items) => this.RemoveRange(items, EqualityComparer<T>.Default); 331public ImmutableList<T> RemoveRange(IEnumerable<T> items, IEqualityComparer<T>? equalityComparer) 343ImmutableList<T>.Node result = _root; 359public ImmutableList<T> RemoveAt(int index) 362ImmutableList<T>.Node result = _root.RemoveAt(index); 377public ImmutableList<T> RemoveAll(Predicate<T> match) 387public ImmutableList<T> SetItem(int index, T value) => this.Wrap(_root.ReplaceAt(index, value)); 392public ImmutableList<T> Replace(T oldValue, T newValue) => this.Replace(oldValue, newValue, EqualityComparer<T>.Default); 397public ImmutableList<T> Replace(T oldValue, T newValue, IEqualityComparer<T>? equalityComparer) 409/// Reverses the order of the elements in the entire <see cref="ImmutableList{T}"/>. 412public ImmutableList<T> Reverse() => this.Wrap(_root.Reverse()); 420public ImmutableList<T> Reverse(int index, int count) => this.Wrap(_root.Reverse(index, count)); 423/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 426public ImmutableList<T> Sort() => this.Wrap(_root.Sort()); 429/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 437public ImmutableList<T> Sort(Comparison<T> comparison) 444/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 452public ImmutableList<T> Sort(IComparer<T>? comparer) => this.Wrap(_root.Sort(comparer)); 455/// Sorts the elements in a range of elements in <see cref="ImmutableList{T}"/> 469public ImmutableList<T> Sort(int index, int count, IComparer<T>? comparer) 497/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 502/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 508/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 513/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 522/// Copies a range of elements from the <see cref="ImmutableList{T}"/> to 527/// The zero-based index in the source <see cref="ImmutableList{T}"/> at 532/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 540/// Creates a shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 543/// The zero-based <see cref="ImmutableList{T}"/> index at which the range 550/// A shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 552public ImmutableList<T> GetRange(int index, int count) 561/// Converts the elements in the current <see cref="ImmutableList{T}"/> to 572/// A <see cref="ImmutableList{T}"/> of the target type containing the converted 573/// elements from the current <see cref="ImmutableList{T}"/>. 575public ImmutableList<TOutput> ConvertAll<TOutput>(Func<T, TOutput> converter) 578return ImmutableList<TOutput>.WrapNode(_root.ConvertAll(converter)); 582/// Determines whether the <see cref="ImmutableList{T}"/> contains elements 590/// true if the <see cref="ImmutableList{T}"/> contains one or more elements 598/// predicate, and returns the first occurrence within the entire <see cref="ImmutableList{T}"/>. 619/// A <see cref="ImmutableList{T}"/> containing all the elements that match 621/// empty <see cref="ImmutableList{T}"/>. 623public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 628/// the entire <see cref="ImmutableList{T}"/>. 643/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 657/// the range of elements in the <see cref="ImmutableList{T}"/> that starts 671/// predicate, and returns the last occurrence within the entire <see cref="ImmutableList{T}"/>. 686/// the entire <see cref="ImmutableList{T}"/>. 701/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 716/// the range of elements in the <see cref="ImmutableList{T}"/> that contains 733/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 737/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 752/// elements in the <see cref="ImmutableList{T}"/> that starts at <paramref name="index"/> and 759/// last occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 764/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 774/// in the <see cref="ImmutableList{T}"/> that contains <paramref name="count"/> number of elements 780/// Determines whether every element in the <see cref="ImmutableList{T}"/> 788/// true if every element in the <see cref="ImmutableList{T}"/> matches the 1096private static ImmutableList<T> WrapNode(Node root) 1099? ImmutableList<T>.Empty 1104/// Attempts to discover an <see cref="ImmutableList{T}"/> instance beneath some enumerable sequence 1108/// <param name="other">Receives the concrete <see cref="ImmutableList{T}"/> typed value if one can be found.</param> 1110private static bool TryCastToImmutableList(IEnumerable<T> sequence, [NotNullWhen(true)] out ImmutableList<T>? other) 1112other = sequence as ImmutableList<T>; 1147private ImmutableList<T> Wrap(Node root) 1164private static ImmutableList<T> CreateRange(IEnumerable<T> items) 1168if (TryCastToImmutableList(items, out ImmutableList<T>? other))
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (5)
17/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>. 168Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this); 202Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this); 205ImmutableList<T>.Node node = _root; 276Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this);
System\Collections\Immutable\ImmutableList_1.Node.cs (57)
65/// Initializes a new instance of the <see cref="ImmutableList{T}.Node"/> class 75/// Initializes a new instance of the <see cref="ImmutableList{T}.Node"/> class 425ImmutableList<T>.Node successor = _right; 431ImmutableList<T>.Node newRight = _right.RemoveAt(0); 437ImmutableList<T>.Node newLeft = _left.RemoveAt(index); 442ImmutableList<T>.Node newRight = _right.RemoveAt(index - _left._count - 1); 464ImmutableList<T>.Node result = this; 511ImmutableList<T>.Node newLeft = _left.ReplaceAt(index, value); 516ImmutableList<T>.Node newRight = _right!.ReplaceAt(index - _left._count - 1, value); 524/// Reverses the order of the elements in the entire <see cref="ImmutableList{T}"/>. 559/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 565/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 584/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 595/// Sorts the elements in a range of elements in <see cref="ImmutableList{T}"/> 623/// Searches a range of elements in the sorted <see cref="ImmutableList{T}"/> 635/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 638/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 644/// <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in the <see cref="ImmutableList{T}"/>. 706/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 710/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 716/// <see cref="ImmutableList{T}"/>, if found; otherwise, -1. 724/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 737/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 741/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 757/// elements in the <see cref="ImmutableList{T}"/> that starts at <paramref name="index"/> and 786/// last occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 791/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 799/// in the <see cref="ImmutableList{T}"/> that contains <paramref name="count"/> number of elements 826/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 831/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 847/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 852/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 871/// Copies a range of elements from the <see cref="ImmutableList{T}"/> to 876/// The zero-based index in the source <see cref="ImmutableList{T}"/> at 881/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 922/// Converts the elements in the current <see cref="ImmutableList{T}"/> to 935internal ImmutableList<TOutput>.Node ConvertAll<TOutput>(Func<T, TOutput> converter) 937ImmutableList<TOutput>.Node root = ImmutableList<TOutput>.Node.EmptyNode; 948/// Determines whether every element in the <see cref="ImmutableList{T}"/> 956/// true if every element in the <see cref="ImmutableList{T}"/> matches the 976/// Determines whether the <see cref="ImmutableList{T}"/> contains elements 984/// true if the <see cref="ImmutableList{T}"/> contains one or more elements 1005/// predicate, and returns the first occurrence within the entire <see cref="ImmutableList{T}"/>. 1039/// A <see cref="ImmutableList{T}"/> containing all the elements that match 1041/// empty <see cref="ImmutableList{T}"/>. 1043internal ImmutableList<T> FindAll(Predicate<T> match) 1049return ImmutableList<T>.Empty; 1065ImmutableList<T>.Empty; 1071/// the entire <see cref="ImmutableList{T}"/>. 1091/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 1111/// the range of elements in the <see cref="ImmutableList{T}"/> that starts 1147/// predicate, and returns the last occurrence within the entire <see cref="ImmutableList{T}"/>. 1178/// the entire <see cref="ImmutableList{T}"/>. 1198/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 1220/// the range of elements in the <see cref="ImmutableList{T}"/> that contains 1555ImmutableList<T>? other;
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (1)
17/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>.
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (1)
16/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>.
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (1)
16/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>.
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
85public INamedTypeSymbol? ImmutableListType => GetOrResolveType(typeof(ImmutableList<>), ref _ImmutableListType);
System.Windows.Forms.UI.IntegrationTests (1)
Infra\DataCollectionService.cs (1)
16private static ImmutableList<CustomLoggerData> s_customInProcessLoggers = [];