1 write to _tc
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
35
(this._included, this._membersIncludedOrExcluded, this.
_tc
) = (included, membersIncludedOrExcluded, tc);
22 references to _tc
Microsoft.CodeAnalysis.CSharp (22)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (22)
54
return
_tc
.ToConstantValue(_membersIncludedOrExcluded.OrderBy(k => k).First());
59
return
_tc
.ToConstantValue((T)(object)"");
62
return
_tc
.ToConstantValue((T)(object)c.ToString());
66
var candidates =
_tc
.RandomValues(_membersIncludedOrExcluded.Count + 1, new Random(0), _membersIncludedOrExcluded.Count + 1);
70
return
_tc
.ToConstantValue(value);
88
bool IValueSet.Any(BinaryOperatorKind relation, ConstantValue value) => value.IsBad || Any(relation,
_tc
.FromConstantValue(value));
111
bool IValueSet.All(BinaryOperatorKind relation, ConstantValue value) => !value.IsBad && All(relation,
_tc
.FromConstantValue(value));
113
public IValueSet<T> Complement() => new EnumeratedValueSet<T>(!_included, _membersIncludedOrExcluded,
_tc
);
122
Debug.Assert(object.ReferenceEquals(this.
_tc
, other.
_tc
));
128
return new EnumeratedValueSet<T>(true, larger._membersIncludedOrExcluded.Intersect(smaller._membersIncludedOrExcluded),
_tc
);
130
return new EnumeratedValueSet<T>(true, larger._membersIncludedOrExcluded.Except(smaller._membersIncludedOrExcluded),
_tc
);
132
return new EnumeratedValueSet<T>(false, larger._membersIncludedOrExcluded.Union(smaller._membersIncludedOrExcluded),
_tc
);
134
return new EnumeratedValueSet<T>(true, smaller._membersIncludedOrExcluded.Except(larger._membersIncludedOrExcluded),
_tc
);
145
Debug.Assert(object.ReferenceEquals(this.
_tc
, other.
_tc
));
151
return new EnumeratedValueSet<T>(false, larger._membersIncludedOrExcluded.Intersect(smaller._membersIncludedOrExcluded),
_tc
);
153
return new EnumeratedValueSet<T>(false, larger._membersIncludedOrExcluded.Except(smaller._membersIncludedOrExcluded),
_tc
);
155
return new EnumeratedValueSet<T>(true, larger._membersIncludedOrExcluded.Union(smaller._membersIncludedOrExcluded),
_tc
);
157
return new EnumeratedValueSet<T>(false, smaller._membersIncludedOrExcluded.Except(larger._membersIncludedOrExcluded),
_tc
);
168
Debug.Assert(object.ReferenceEquals(this.
_tc
, other.
_tc
));