50 references to IsEmpty
System.Collections.Immutable (50)
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (2)
225if (_additionalElements.IsEmpty) 435if (_bucket._additionalElements.IsEmpty)
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (2)
212if (_additionalElements.IsEmpty) 358if (_bucket._additionalElements.IsEmpty)
System\Collections\Immutable\ImmutableList_1.cs (3)
132public bool IsEmpty => _root.IsEmpty; 1100return root.IsEmpty 1153return root.IsEmpty ? this.Clear() : new ImmutableList<T>(root);
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (4)
207while (!node.IsEmpty && skipNodes != this.PreviousBranch(node)!.Count) 221if (!node.IsEmpty) 273if (!node.IsEmpty) 277while (!node.IsEmpty)
System\Collections\Immutable\ImmutableList_1.Node.cs (39)
71Debug.Assert(this.IsEmpty); 95Debug.Assert(!this.IsEmpty); 287if (this.IsEmpty) 307if (this.IsEmpty) 335if (this.IsEmpty) 352if (this.IsEmpty) 373if (this.IsEmpty) 409if (_right.IsEmpty && _left.IsEmpty) 413else if (_right.IsEmpty && !_left.IsEmpty) 417else if (!_right.IsEmpty && _left.IsEmpty) 426while (!successor._left!.IsEmpty) 446return result.IsEmpty || result.IsBalanced ? result : result.Balance(); 501Debug.Assert(!this.IsEmpty); 657if (this.IsEmpty || count <= 0) 944if (this.IsEmpty) 1052if (this.IsEmpty) 1197return this.IsEmpty ? -1 : this.FindLastIndex(this.Count - 1, this.Count, match); 1219return this.IsEmpty ? -1 : this.FindLastIndex(startIndex, startIndex + 1, match); 1290Debug.Assert(!this.IsEmpty); 1291Debug.Assert(!_right!.IsEmpty); 1302Debug.Assert(!this.IsEmpty); 1303Debug.Assert(!_left!.IsEmpty); 1314Debug.Assert(!this.IsEmpty); 1315Debug.Assert(!_right!.IsEmpty); 1316Debug.Assert(!_right!._left!.IsEmpty); 1332Debug.Assert(!this.IsEmpty); 1333Debug.Assert(!_left!.IsEmpty); 1334Debug.Assert(!_left._right!.IsEmpty); 1354Debug.Assert(!this.IsEmpty); 1395Debug.Assert(!this.IsEmpty); 1407Debug.Assert(!this.IsEmpty); 1457Debug.Assert(!this.IsEmpty); 1482Debug.Assert(!this.IsEmpty); 1506Debug.Assert(!this.IsEmpty); 1546Debug.Assert(!this.IsEmpty); 1597private static bool Contains(Node node, T value, IEqualityComparer<T> equalityComparer) => !node.IsEmpty && (equalityComparer.Equals(value, node._key) || Contains(node._left!, value, equalityComparer) || Contains(node._right!, value, equalityComparer));