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