1 write to _included
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
35
(this.
_included
, this._membersIncludedOrExcluded, this._tc) = (included, membersIncludedOrExcluded, tc);
14 references to _included
Microsoft.CodeAnalysis.CSharp (14)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (14)
25
/// In <see cref="
_included
"/>, then members are listed by inclusion. Otherwise all members
46
public bool IsEmpty =>
_included
&& _membersIncludedOrExcluded.IsEmpty;
53
if (
_included
)
82
return
_included
== _membersIncludedOrExcluded.Contains(value);
95
if (!
_included
)
113
public IValueSet<T> Complement() => new EnumeratedValueSet<T>(!
_included
, _membersIncludedOrExcluded, _tc);
125
switch (larger.
_included
, smaller.
_included
)
148
switch (larger.
_included
, smaller.
_included
)
169
return this.
_included
== other.
_included
173
public override int GetHashCode() => Hash.Combine(this.
_included
.GetHashCode(), this._membersIncludedOrExcluded.GetHashCode());
175
public override string ToString() => $"{(this.
_included
? "" : "~")}{{{string.Join(",", _membersIncludedOrExcluded.Select(o => o.ToString()))}{"}"}";