|
| 1 | +// Licensed to the .NET Foundation under one or more agreements. |
| 2 | +// The .NET Foundation licenses this file to you under the MIT license. |
| 3 | +// See the LICENSE file in the project root for more information. |
| 4 | + |
| 5 | +using System; |
| 6 | +using System.Collections; |
| 7 | +using System.Collections.Generic; |
| 8 | +using System.Collections.Immutable; |
| 9 | + |
| 10 | +namespace Microsoft.CodeAnalysis.Collections |
| 11 | +{ |
| 12 | + internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>> |
| 13 | + { |
| 14 | + /// <inheritdoc cref="ImmutableHashSet{T}.Empty"/> |
| 15 | + public static readonly ImmutableSegmentedHashSet<T> Empty; |
| 16 | + |
| 17 | + /// <inheritdoc cref="ImmutableHashSet{T}.KeyComparer"/> |
| 18 | + public IEqualityComparer<T> KeyComparer => throw null!; |
| 19 | + |
| 20 | + /// <inheritdoc cref="ImmutableHashSet{T}.Count"/> |
| 21 | + public int Count => throw null!; |
| 22 | + |
| 23 | + /// <inheritdoc cref="ImmutableHashSet{T}.IsEmpty"/> |
| 24 | + public bool IsEmpty => throw null!; |
| 25 | + |
| 26 | + bool ICollection<T>.IsReadOnly => throw null!; |
| 27 | + |
| 28 | + bool ICollection.IsSynchronized => throw null!; |
| 29 | + |
| 30 | + object ICollection.SyncRoot => throw null!; |
| 31 | + |
| 32 | + public static bool operator ==(ImmutableSegmentedHashSet<T> left, ImmutableSegmentedHashSet<T> right) |
| 33 | + => throw null!; |
| 34 | + |
| 35 | + public static bool operator !=(ImmutableSegmentedHashSet<T> left, ImmutableSegmentedHashSet<T> right) |
| 36 | + => throw null!; |
| 37 | + |
| 38 | + public static bool operator ==(ImmutableSegmentedHashSet<T>? left, ImmutableSegmentedHashSet<T>? right) |
| 39 | + => throw null!; |
| 40 | + |
| 41 | + public static bool operator !=(ImmutableSegmentedHashSet<T>? left, ImmutableSegmentedHashSet<T>? right) |
| 42 | + => throw null!; |
| 43 | + |
| 44 | + /// <inheritdoc cref="ImmutableHashSet{T}.Add(T)"/> |
| 45 | + public ImmutableSegmentedHashSet<T> Add(T value) |
| 46 | + => throw null!; |
| 47 | + |
| 48 | + /// <inheritdoc cref="ImmutableHashSet{T}.Clear()"/> |
| 49 | + public ImmutableSegmentedHashSet<T> Clear() |
| 50 | + => throw null!; |
| 51 | + |
| 52 | + /// <inheritdoc cref="ImmutableHashSet{T}.Contains(T)"/> |
| 53 | + public bool Contains(T value) |
| 54 | + => throw null!; |
| 55 | + |
| 56 | + /// <inheritdoc cref="ImmutableHashSet{T}.Except(IEnumerable{T})"/> |
| 57 | + public ImmutableSegmentedHashSet<T> Except(IEnumerable<T> other) |
| 58 | + => throw null!; |
| 59 | + |
| 60 | + /// <inheritdoc cref="ImmutableHashSet{T}.GetEnumerator()"/> |
| 61 | + public Enumerator GetEnumerator() |
| 62 | + => throw null!; |
| 63 | + |
| 64 | + /// <inheritdoc cref="ImmutableHashSet{T}.Intersect(IEnumerable{T})"/> |
| 65 | + public ImmutableSegmentedHashSet<T> Intersect(IEnumerable<T> other) |
| 66 | + => throw null!; |
| 67 | + |
| 68 | + /// <inheritdoc cref="ImmutableHashSet{T}.IsProperSubsetOf(IEnumerable{T})"/> |
| 69 | + public bool IsProperSubsetOf(IEnumerable<T> other) |
| 70 | + => throw null!; |
| 71 | + |
| 72 | + /// <inheritdoc cref="ImmutableHashSet{T}.IsProperSupersetOf(IEnumerable{T})"/> |
| 73 | + public bool IsProperSupersetOf(IEnumerable<T> other) |
| 74 | + => throw null!; |
| 75 | + |
| 76 | + /// <inheritdoc cref="ImmutableHashSet{T}.IsSubsetOf(IEnumerable{T})"/> |
| 77 | + public bool IsSubsetOf(IEnumerable<T> other) |
| 78 | + => throw null!; |
| 79 | + |
| 80 | + /// <inheritdoc cref="ImmutableHashSet{T}.IsSupersetOf(IEnumerable{T})"/> |
| 81 | + public bool IsSupersetOf(IEnumerable<T> other) |
| 82 | + => throw null!; |
| 83 | + |
| 84 | + /// <inheritdoc cref="ImmutableHashSet{T}.Overlaps(IEnumerable{T})"/> |
| 85 | + public bool Overlaps(IEnumerable<T> other) |
| 86 | + => throw null!; |
| 87 | + |
| 88 | + /// <inheritdoc cref="ImmutableHashSet{T}.Remove(T)"/> |
| 89 | + public ImmutableSegmentedHashSet<T> Remove(T value) |
| 90 | + => throw null!; |
| 91 | + |
| 92 | + /// <inheritdoc cref="ImmutableHashSet{T}.SetEquals(IEnumerable{T})"/> |
| 93 | + public bool SetEquals(IEnumerable<T> other) |
| 94 | + => throw null!; |
| 95 | + |
| 96 | + /// <inheritdoc cref="ImmutableHashSet{T}.SymmetricExcept(IEnumerable{T})"/> |
| 97 | + public ImmutableSegmentedHashSet<T> SymmetricExcept(IEnumerable<T> other) |
| 98 | + => throw null!; |
| 99 | + |
| 100 | + /// <inheritdoc cref="ImmutableHashSet{T}.TryGetValue(T, out T)"/> |
| 101 | + public bool TryGetValue(T equalValue, out T actualValue) |
| 102 | + => throw null!; |
| 103 | + |
| 104 | + /// <inheritdoc cref="ImmutableHashSet{T}.Union(IEnumerable{T})"/> |
| 105 | + public ImmutableSegmentedHashSet<T> Union(IEnumerable<T> other) |
| 106 | + => throw null!; |
| 107 | + |
| 108 | + /// <inheritdoc cref="ImmutableHashSet{T}.ToBuilder()"/> |
| 109 | + public Builder ToBuilder() |
| 110 | + => throw null!; |
| 111 | + |
| 112 | + /// <inheritdoc cref="ImmutableHashSet{T}.WithComparer(IEqualityComparer{T}?)"/> |
| 113 | + public ImmutableSegmentedHashSet<T> WithComparer(IEqualityComparer<T>? equalityComparer) |
| 114 | + => throw null!; |
| 115 | + |
| 116 | + public override int GetHashCode() |
| 117 | + => throw null!; |
| 118 | + |
| 119 | + public override bool Equals(object? obj) |
| 120 | + => throw null!; |
| 121 | + |
| 122 | + public bool Equals(ImmutableSegmentedHashSet<T> other) |
| 123 | + => throw null!; |
| 124 | + |
| 125 | + IImmutableSet<T> IImmutableSet<T>.Clear() |
| 126 | + => throw null!; |
| 127 | + |
| 128 | + IImmutableSet<T> IImmutableSet<T>.Add(T value) |
| 129 | + => throw null!; |
| 130 | + |
| 131 | + IImmutableSet<T> IImmutableSet<T>.Remove(T value) |
| 132 | + => throw null!; |
| 133 | + |
| 134 | + IImmutableSet<T> IImmutableSet<T>.Intersect(IEnumerable<T> other) |
| 135 | + => throw null!; |
| 136 | + |
| 137 | + IImmutableSet<T> IImmutableSet<T>.Except(IEnumerable<T> other) |
| 138 | + => throw null!; |
| 139 | + |
| 140 | + IImmutableSet<T> IImmutableSet<T>.SymmetricExcept(IEnumerable<T> other) |
| 141 | + => throw null!; |
| 142 | + |
| 143 | + IImmutableSet<T> IImmutableSet<T>.Union(IEnumerable<T> other) |
| 144 | + => throw null!; |
| 145 | + |
| 146 | + void ICollection<T>.CopyTo(T[] array, int arrayIndex) |
| 147 | + => throw null!; |
| 148 | + |
| 149 | + void ICollection.CopyTo(Array array, int index) |
| 150 | + => throw null!; |
| 151 | + |
| 152 | + IEnumerator<T> IEnumerable<T>.GetEnumerator() |
| 153 | + => throw null!; |
| 154 | + |
| 155 | + IEnumerator IEnumerable.GetEnumerator() |
| 156 | + => throw null!; |
| 157 | + |
| 158 | + bool ISet<T>.Add(T item) |
| 159 | + => throw new NotSupportedException(); |
| 160 | + |
| 161 | + void ISet<T>.UnionWith(IEnumerable<T> other) |
| 162 | + => throw new NotSupportedException(); |
| 163 | + |
| 164 | + void ISet<T>.IntersectWith(IEnumerable<T> other) |
| 165 | + => throw new NotSupportedException(); |
| 166 | + |
| 167 | + void ISet<T>.ExceptWith(IEnumerable<T> other) |
| 168 | + => throw new NotSupportedException(); |
| 169 | + |
| 170 | + void ISet<T>.SymmetricExceptWith(IEnumerable<T> other) |
| 171 | + => throw new NotSupportedException(); |
| 172 | + |
| 173 | + void ICollection<T>.Add(T item) |
| 174 | + => throw new NotSupportedException(); |
| 175 | + |
| 176 | + void ICollection<T>.Clear() |
| 177 | + => throw new NotSupportedException(); |
| 178 | + |
| 179 | + bool ICollection<T>.Remove(T item) |
| 180 | + => throw new NotSupportedException(); |
| 181 | + } |
| 182 | +} |
0 commit comments