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) 939if (this.IsEmpty) 1047if (this.IsEmpty) 1192return this.IsEmpty ? -1 : this.FindLastIndex(this.Count - 1, this.Count, match); 1214return this.IsEmpty ? -1 : this.FindLastIndex(startIndex, startIndex + 1, match); 1279Debug.Assert(!this.IsEmpty); 1280Debug.Assert(!_right!.IsEmpty); 1291Debug.Assert(!this.IsEmpty); 1292Debug.Assert(!_left!.IsEmpty); 1303Debug.Assert(!this.IsEmpty); 1304Debug.Assert(!_right!.IsEmpty); 1305Debug.Assert(!_right!._left!.IsEmpty); 1321Debug.Assert(!this.IsEmpty); 1322Debug.Assert(!_left!.IsEmpty); 1323Debug.Assert(!_left._right!.IsEmpty); 1343Debug.Assert(!this.IsEmpty); 1384Debug.Assert(!this.IsEmpty); 1396Debug.Assert(!this.IsEmpty); 1446Debug.Assert(!this.IsEmpty); 1471Debug.Assert(!this.IsEmpty); 1495Debug.Assert(!this.IsEmpty); 1535Debug.Assert(!this.IsEmpty); 1586private 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));