19 references to IsEmpty
Microsoft.CodeAnalysis (10)
ImmutableSegmentedList`1.cs (8)
143
if (self.
IsEmpty
)
167
else if (self.
IsEmpty
)
257
if (startIndex == 0 && self.
IsEmpty
)
272
if (count == 0 && startIndex == 0 && self.
IsEmpty
)
348
if (count == 0 && index == 0 && self.
IsEmpty
)
409
if (self.
IsEmpty
)
433
if (self.
IsEmpty
)
638
=>
IsEmpty
? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
ImmutableSegmentedListExtensions.cs (2)
36
return !immutableList.
IsEmpty
;
108
if (immutableList.
IsEmpty
)
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableListTestBase.cs (3)
144
Assert.True(FindAllImpl(ImmutableSegmentedList<int>.Empty, n => true).
IsEmpty
);
332
Assert.True(ConvertAllImpl<int, float>(ImmutableSegmentedList<int>.Empty, n => n).
IsEmpty
);
343
Assert.True(GetRangeImpl(ImmutableSegmentedList<int>.Empty, 0, 0).
IsEmpty
);
Collections\ImmutableSegmentedListBuilderTest.cs (2)
419
Assert.True(builder.ToImmutableSegmentedList().
IsEmpty
);
420
Assert.False(list.
IsEmpty
);
Collections\ImmutableSegmentedListTest.cs (4)
111
Assert.True(empty.
IsEmpty
);
130
Assert.False(list.
IsEmpty
);
324
Assert.True(list.
IsEmpty
);
618
Assert.True(ImmutableSegmentedList<int>.Empty.RemoveRange(0, 0).
IsEmpty
);