5 instantiations of ImmutableList
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableList_1.cs (5)
24public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); 243return new ImmutableList<T>(Node.NodeTreeFromList(items)); 1102: new ImmutableList<T>(root); 1153return root.IsEmpty ? this.Clear() : new ImmutableList<T>(root); 1189return new ImmutableList<T>(root);
2129 references to ImmutableList
Aspire.Dashboard (4)
Components\Controls\Chart\ChartContainer.razor.cs (1)
61public ImmutableList<DimensionFilterViewModel> DimensionFilters { get; set; } = [];
Components\Controls\Chart\ChartFilters.razor.cs (1)
20public required ImmutableList<DimensionFilterViewModel> DimensionFilters { get; set; }
Components\Pages\ConsoleLogs.razor.cs (2)
134private ImmutableList<SelectViewModel<ResourceTypeDetails>>? _resources; 624internal static ImmutableList<SelectViewModel<ResourceTypeDetails>> GetConsoleLogResourceSelectViewModels(
Aspire.Dashboard.Tests (4)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (4)
31var viewModels = Components.Pages.ConsoleLogs.GetConsoleLogResourceSelectViewModels(resourcesByName, allResourceViewModel, unknownStateText, false, out var optionToSelect); 74var viewModels = Components.Pages.ConsoleLogs.GetConsoleLogResourceSelectViewModels(resourcesByName, allResourceViewModel, unknownStateText, false, out var optionToSelect); 155var viewModels = Components.Pages.ConsoleLogs.GetConsoleLogResourceSelectViewModels( 188var viewModels = Components.Pages.ConsoleLogs.GetConsoleLogResourceSelectViewModels(
GenerateDocumentationAndConfigFiles (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Metrics (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Metrics.Legacy (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
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.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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.Analyzers (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Microsoft.CodeAnalysis.AnalyzerUtilities (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Microsoft.CodeAnalysis.BannedApiAnalyzers (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
29protected abstract ImmutableList<TSymbolSyntax> GetVariableDeclarators(TFieldDeclarationSyntax declaration); 64var declarationDeclarators = GetVariableDeclarators(fieldDeclaration);
Microsoft.CodeAnalysis.Collections.Package (87)
Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
58nameof(ImmutableList<>),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
307var 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)
58nameof(ImmutableList<>),
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)
307var separators = orderByClauseSyntax.Orderings.GetSeparators().ToImmutableList();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
TestExtensionErrorHandler.cs (1)
20public ImmutableList<Exception> Exceptions { get; private set; } = [];
Microsoft.CodeAnalysis.Extensions.Package (87)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (2)
28private ImmutableList<string> _results = []; 32public ImmutableList<string> Results => _results;
Microsoft.CodeAnalysis.Features (10)
EditAndContinue\DebuggingSession.cs (7)
77private readonly Dictionary<ProjectId, ImmutableList<ProjectBaseline>> _projectBaselines = []; 309internal ImmutableList<ProjectBaseline> GetOrCreateEmitBaselines( 318ImmutableList<ProjectBaseline>? existingBaselines; 357var baselines = (existingBaselines ?? []).Add(newBaseline); 365bool TryGetBaselinesContainingModuleVersion(Guid moduleId, [NotNullWhen(true)] out ImmutableList<ProjectBaseline>? baselines) 667if (_projectBaselines.TryGetValue(projectId, out var projectBaselines)) 942public ImmutableList<ProjectBaseline> GetProjectBaselines(ProjectId projectId)
EditAndContinue\EditSession.cs (1)
1190var projectBaselines = DebuggingSession.GetOrCreateEmitBaselines(mvid, oldProject, oldCompilation, projectDiagnostics, out var baselineAccessLock);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
29protected abstract ImmutableList<TSymbolSyntax> GetVariableDeclarators(TFieldDeclarationSyntax declaration); 64var declarationDeclarators = GetVariableDeclarators(fieldDeclaration);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
57private ImmutableList<Stream> _disposalVerifiedStreams = [];
Microsoft.CodeAnalysis.InteractiveHost (87)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Microsoft.CodeAnalysis.PublicApiAnalyzers (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Microsoft.CodeAnalysis.ResxSourceGenerator (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Microsoft.CodeAnalysis.Threading.Package (87)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.CodeAnalysis.Workspaces (104)
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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
64private ImmutableList<DocumentId>? _orderedDocumentsInBatch = null; 587ImmutableList<DocumentId>? orderedDocumentsInBatch,
Workspace\Solution\ProjectState.cs (1)
1038public ProjectState UpdateDocumentsOrder(ImmutableList<DocumentId> documentIds)
Workspace\Solution\Solution.cs (1)
566public 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)
553ProjectId projectId, ImmutableList<DocumentId> documentIds)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
166ImmutableList<TranslationAction> GetPendingTranslationActions(CompilationTrackerState state) 168var pendingTranslationActions = state switch
Workspace\Solution\SolutionState.cs (1)
845public StateChange WithProjectDocumentsOrder(ProjectId projectId, ImmutableList<DocumentId> documentIds)
Workspace\Solution\TextDocumentStates.cs (4)
52private readonly ImmutableList<DocumentId> _ids; 57ImmutableList<DocumentId> ids, 82public TextDocumentStates<TState> WithCompilationOrder(ImmutableList<DocumentId> ids) 264private 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)
107public 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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <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)
168var 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 (10)
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;
src\PublishArtifactsInManifestBase.cs (1)
341var updates = NewAssetLocations.Keys.Select(nal => new AssetAndLocation(nal.AssetId, (LocationType)nal.LocationType)
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)
13private static readonly ImmutableList<string> s_exemptTypes = ImmutableList.Create( 25private static readonly ImmutableList<string> s_exemptNamespaces = ImmutableList.Create(
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
121ImmutableList<MethodGroupModel> methodGroups = document.Paths
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
820yield return new TestData<ImmutableList<string>>(ImmutableList.Create("one", "two", "three"), """{"type":["array","null"],"items":{"type":["string","null"]}}"""); 1303[JsonSerializable(typeof(ImmutableList<string>))]
Microsoft.VisualStudio.IntegrationTest.Setup (2)
TestTraceListener.cs (2)
15private ImmutableList<Exception> _failures = []; 130var failures = Interlocked.Exchange(ref _failures, []);
Microsoft.VisualStudio.LanguageServices (4)
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (1)
25private ImmutableList<SinkManager> _managers = [];
Workspace\VisualStudioActiveDocumentTracker.cs (3)
40private ImmutableList<FrameListener> _visibleFrames = []; 95var visibleFramesSnapshot = _visibleFrames; 121var visibleFramesSnapshot = _visibleFrames;
Roslyn.Diagnostics.Analyzers (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
307var separators = orderByClauseSyntax.Orderings.GetSeparators().ToImmutableList();
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
820yield return new TestData<ImmutableList<string>>(ImmutableList.Create("one", "two", "three"), """{"type":["array","null"],"items":{"type":["string","null"]}}"""); 1303[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)
43private ImmutableList<T>? _immutable; 54internal Builder(ImmutableList<T> list) 187this.Root = ImmutableList<T>.Node.EmptyNode; 219public ImmutableList<T>.Enumerator GetEnumerator() 320public ImmutableList<T> GetRange(int index, int count) 325return ImmutableList<T>.WrapNode(Node.NodeTreeFromList(this, index, count)); 343public ImmutableList<TOutput> ConvertAll<TOutput>(Func<T, TOutput> converter) 346return ImmutableList<TOutput>.WrapNode(_root.ConvertAll(converter)); 391public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 1007public ImmutableList<T> ToImmutable() 1012return _immutable ??= ImmutableList<T>.WrapNode(this.Root); 1172private readonly ImmutableList<T>.Builder _list; 1178public 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"/>. 117/// <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in the <see cref="ImmutableList{T}"/>. 207public ImmutableList<T> Add(T value) 209ImmutableList<T>.Node result = _root.Add(value); 216public ImmutableList<T> AddRange(IEnumerable<T> items) 226ImmutableList<T>.Node result = _root.AddRange(items); 234internal ImmutableList<T> AddRange(ReadOnlySpan<T> items) 259public ImmutableList<T> Insert(int index, T item) 268public ImmutableList<T> InsertRange(int index, IEnumerable<T> items) 273ImmutableList<T>.Node result = _root.InsertRange(index, items); 281public ImmutableList<T> Remove(T value) => this.Remove(value, EqualityComparer<T>.Default); 286public ImmutableList<T> Remove(T value, IEqualityComparer<T>? equalityComparer) 298public ImmutableList<T> RemoveRange(int index, int count) 303ImmutableList<T>.Node result = _root; 320public ImmutableList<T> RemoveRange(IEnumerable<T> items) => this.RemoveRange(items, EqualityComparer<T>.Default); 333public ImmutableList<T> RemoveRange(IEnumerable<T> items, IEqualityComparer<T>? equalityComparer) 345ImmutableList<T>.Node result = _root; 361public ImmutableList<T> RemoveAt(int index) 364ImmutableList<T>.Node result = _root.RemoveAt(index); 379public ImmutableList<T> RemoveAll(Predicate<T> match) 389public ImmutableList<T> SetItem(int index, T value) => this.Wrap(_root.ReplaceAt(index, value)); 394public ImmutableList<T> Replace(T oldValue, T newValue) => this.Replace(oldValue, newValue, EqualityComparer<T>.Default); 399public ImmutableList<T> Replace(T oldValue, T newValue, IEqualityComparer<T>? equalityComparer) 411/// Reverses the order of the elements in the entire <see cref="ImmutableList{T}"/>. 414public ImmutableList<T> Reverse() => this.Wrap(_root.Reverse()); 422public ImmutableList<T> Reverse(int index, int count) => this.Wrap(_root.Reverse(index, count)); 425/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 428public ImmutableList<T> Sort() => this.Wrap(_root.Sort()); 431/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 439public ImmutableList<T> Sort(Comparison<T> comparison) 446/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 454public ImmutableList<T> Sort(IComparer<T>? comparer) => this.Wrap(_root.Sort(comparer)); 457/// Sorts the elements in a range of elements in <see cref="ImmutableList{T}"/> 471public ImmutableList<T> Sort(int index, int count, IComparer<T>? comparer) 499/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 504/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 510/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 515/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 524/// Copies a range of elements from the <see cref="ImmutableList{T}"/> to 529/// The zero-based index in the source <see cref="ImmutableList{T}"/> at 534/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 542/// Creates a shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 545/// The zero-based <see cref="ImmutableList{T}"/> index at which the range 552/// A shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 554public ImmutableList<T> GetRange(int index, int count) 563/// Converts the elements in the current <see cref="ImmutableList{T}"/> to 574/// A <see cref="ImmutableList{T}"/> of the target type containing the converted 575/// elements from the current <see cref="ImmutableList{T}"/>. 577public ImmutableList<TOutput> ConvertAll<TOutput>(Func<T, TOutput> converter) 580return ImmutableList<TOutput>.WrapNode(_root.ConvertAll(converter)); 584/// Determines whether the <see cref="ImmutableList{T}"/> contains elements 592/// true if the <see cref="ImmutableList{T}"/> contains one or more elements 600/// predicate, and returns the first occurrence within the entire <see cref="ImmutableList{T}"/>. 621/// A <see cref="ImmutableList{T}"/> containing all the elements that match 623/// empty <see cref="ImmutableList{T}"/>. 625public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 630/// the entire <see cref="ImmutableList{T}"/>. 645/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 659/// the range of elements in the <see cref="ImmutableList{T}"/> that starts 673/// predicate, and returns the last occurrence within the entire <see cref="ImmutableList{T}"/>. 688/// the entire <see cref="ImmutableList{T}"/>. 703/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 718/// the range of elements in the <see cref="ImmutableList{T}"/> that contains 735/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 739/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 754/// elements in the <see cref="ImmutableList{T}"/> that starts at <paramref name="index"/> and 761/// last occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 766/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 776/// in the <see cref="ImmutableList{T}"/> that contains <paramref name="count"/> number of elements 782/// Determines whether every element in the <see cref="ImmutableList{T}"/> 790/// true if every element in the <see cref="ImmutableList{T}"/> matches the 1098private static ImmutableList<T> WrapNode(Node root) 1101? ImmutableList<T>.Empty 1106/// Attempts to discover an <see cref="ImmutableList{T}"/> instance beneath some enumerable sequence 1110/// <param name="other">Receives the concrete <see cref="ImmutableList{T}"/> typed value if one can be found.</param> 1112private static bool TryCastToImmutableList(IEnumerable<T> sequence, [NotNullWhen(true)] out ImmutableList<T>? other) 1114other = sequence as ImmutableList<T>; 1149private ImmutableList<T> Wrap(Node root) 1166private static ImmutableList<T> CreateRange(IEnumerable<T> items) 1170if (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)
15private static ImmutableList<CustomLoggerData> s_customInProcessLoggers = [];
Test.Utilities (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Text.Analyzers (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\Segmented\ImmutableSegmentedDictionary`2.cs (1)
25/// <see cref="ImmutableList{T}"/> is applicable.</para>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (47)
21/// best for <see cref="ImmutableList{T}"/>.</para> 30/// <description><see cref="ImmutableList{T}"/> Complexity</description> 75/// <inheritdoc cref="ImmutableList{T}.Empty"/> 87/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 126/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 140/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 160/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 188/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 192/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 196/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 200/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 207/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 211/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 218/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 284/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 288/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 292/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 309/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 324/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 360/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 372/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 394/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 403/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 427/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 451/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 467/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 481/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 495/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 507/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 515/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 524/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 538/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 571/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 580/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (38)
50/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 57/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 61/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 65/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 69/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 79/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 83/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 90/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 134/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 138/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 142/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 149/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 153/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 157/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 164/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 168/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 172/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 176/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 180/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 194/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 198/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 202/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 206/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 214/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 218/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
56private ImmutableList<WeakReference<Box>> _items = [];