29 references to IsEmpty
Microsoft.CodeAnalysis (10)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (8)
145if (self.IsEmpty) 169else if (self.IsEmpty) 259if (startIndex == 0 && self.IsEmpty) 274if (count == 0 && startIndex == 0 && self.IsEmpty) 350if (count == 0 && index == 0 && self.IsEmpty) 411if (self.IsEmpty) 435if (self.IsEmpty) 640=> IsEmpty ? Enumerable.Empty<T>().GetEnumerator() : GetEnumerator();
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (2)
38return !immutableList.IsEmpty; 110if (immutableList.IsEmpty)
Microsoft.CodeAnalysis.UnitTests (19)
Collections\ImmutableListTestBase.cs (3)
144Assert.True(FindAllImpl(ImmutableSegmentedList<int>.Empty, n => true).IsEmpty); 332Assert.True(ConvertAllImpl<int, float>(ImmutableSegmentedList<int>.Empty, n => n).IsEmpty); 343Assert.True(GetRangeImpl(ImmutableSegmentedList<int>.Empty, 0, 0).IsEmpty);
Collections\ImmutableSegmentedListBuilderTest.cs (2)
419Assert.True(builder.ToImmutableSegmentedList().IsEmpty); 420Assert.False(list.IsEmpty);
Collections\ImmutableSegmentedListTest.cs (4)
111Assert.True(empty.IsEmpty); 130Assert.False(list.IsEmpty); 324Assert.True(list.IsEmpty); 618Assert.True(ImmutableSegmentedList<int>.Empty.RemoveRange(0, 0).IsEmpty);
Collections\SegmentedCollectionsMarshalTests.cs (10)
422Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<int>(0)).IsEmpty); 423Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<int?>(0)).IsEmpty); 424Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<Guid>(0)).IsEmpty); 425Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<Guid?>(0)).IsEmpty); 426Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<string>(0)).IsEmpty); 427Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<CustomClass>(0)).IsEmpty); 428Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<ManagedCustomStruct>(0)).IsEmpty); 429Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<ManagedCustomStruct?>(0)).IsEmpty); 430Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<UnmanagedCustomStruct>(0)).IsEmpty); 431Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList(new SegmentedList<UnmanagedCustomStruct?>(0)).IsEmpty);