20 references to Add
Microsoft.CodeAnalysis (3)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (1)
21
=> ImmutableSegmentedList<T>.Empty.
Add
(item);
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
315
return self.
Add
(item);
607
=>
Add
(value);
Microsoft.CodeAnalysis.UnitTests (17)
Collections\ImmutableSegmentedListBuilderTest.cs (2)
56
var list = ImmutableSegmentedList<int>.Empty.
Add
(1);
118
var collection = ImmutableSegmentedList<int>.Empty.
Add
(1);
Collections\ImmutableSegmentedListTest.cs (15)
57
actual = actual.
Add
(value);
129
list = list.
Add
(i * 10);
316
list = list.
Add
((GenericParameterHelper?)null);
348
list = list.
Add
(i * 10);
429
list = list.
Add
(i * 10);
454
list = list.
Add
(newElement);
525
var list = ImmutableSegmentedList<int>.Empty.
Add
(3).
Add
(5).
Add
(8);
534
list = ImmutableSegmentedList<int>.Empty.
Add
(3).
Add
(3).
Add
(5);
571
Assert.False(ImmutableSegmentedList<int>.Empty.
Add
(3).Equals(ImmutableSegmentedList<int>.Empty.
Add
(3)));
729
var listOfOne = emptyList.
Add
(5);