28 references to SegmentedList
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
76public static readonly ImmutableSegmentedList<T> Empty = new(new SegmentedList<T>()); 147var list = new SegmentedList<T> { value };
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
112_mutableList = new SegmentedList<T>();
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
600var list = new SegmentedList<T>();
Microsoft.CodeAnalysis.UnitTests (24)
Collections\List\SegmentedList.Generic.cs (2)
62protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(ModifyOperation operations) => new SegmentedList<ModifyEnumerable>(); 87protected override IEnumerable<ModifyEnumerable> GetModifyEnumerables(ModifyOperation operations) => new SegmentedList<ModifyEnumerable>();
Collections\List\SegmentedList.Generic.Tests.AsNonGenericIList.cs (1)
38return new SegmentedList<string>();
Collections\List\SegmentedList.Generic.Tests.Constructor.cs (1)
27SegmentedList<T> list = new SegmentedList<T>();
Collections\List\SegmentedList.Generic.Tests.cs (1)
45return new SegmentedList<T>();
Collections\List\SegmentedList.Generic.Tests.Find.cs (6)
299SegmentedList<int> expectedList = new SegmentedList<int>() { 1, 2, 3, 2, 3, 4, 3, 4, 4 }; 301SegmentedList<int> list = new SegmentedList<int>() { 1, 2, 3 }; 982VerifyList(list.FindAll(_alwaysFalseDelegate), new SegmentedList<T>()); 1007VerifyList(list.FindAll(_alwaysFalseDelegate), new SegmentedList<T>()); 1013SegmentedList<int> list = new SegmentedList<int>() { 1, 2, 3 }; 1014SegmentedList<int> expectedList = new SegmentedList<int>() { 1, 2, 3, 2, 3, 4, 3, 4, 4 };
Collections\List\SegmentedList.Generic.Tests.ForEach.cs (1)
27SegmentedList<T> visitedItems = new SegmentedList<T>();
Collections\List\SegmentedList.Generic.Tests.Misc.cs (11)
353SegmentedList<T> list = new SegmentedList<T>(); 366SegmentedList<T?> list = new SegmentedList<T?>(); 400SegmentedList<T> list = new SegmentedList<T>(); 583SegmentedList<T> list = new SegmentedList<T>(); 596SegmentedList<T> list = new SegmentedList<T>(); 603SegmentedList<T> list = new SegmentedList<T>(); 630SegmentedList<T> list = new SegmentedList<T>(); 638SegmentedList<T> list = new SegmentedList<T>(); 673SegmentedList<T> list = new SegmentedList<T>(); 1163SegmentedList<int> list = new SegmentedList<int>() { 1, 2, 3 }; 1164SegmentedList<int> expectedList = new SegmentedList<int> { 1, 2, 3, 2, 3, 4, 3, 4, 4 };
Collections\List\SegmentedList.Generic.Tests.Remove.cs (1)
63Assert.Throws<ArgumentNullException>("match", () => new SegmentedList<T>().RemoveAll(null!));