1 write to _intervals
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.NumericValueSet.cs (1)
50
_intervals
= intervals;
37 references to _intervals
Microsoft.CodeAnalysis.CSharp (37)
Utilities\ValueSetFactory.NumericValueSet.cs (37)
54
public bool IsEmpty =>
_intervals
.Length == 0;
67
return _tc.ToConstantValue(t.
_intervals
[0].first);
68
return _tc.ToConstantValue(this.
_intervals
[this.
_intervals
.Length - 1].last);
78
return
_intervals
.Length > 0 && _tc.Related(relation,
_intervals
[0].first, value);
81
return
_intervals
.Length > 0 && _tc.Related(relation,
_intervals
[
_intervals
.Length - 1].last, value);
83
return anyIntervalContains(0,
_intervals
.Length - 1, value);
96
return _tc.Related(GreaterThanOrEqual, value,
_intervals
[lastIntervalIndex].first) && _tc.Related(LessThanOrEqual, value,
_intervals
[lastIntervalIndex].last);
99
if (_tc.Related(LessThanOrEqual, value,
_intervals
[midIndex].last))
111
if (
_intervals
.Length == 0)
118
return _tc.Related(relation,
_intervals
[
_intervals
.Length - 1].last, value);
121
return _tc.Related(relation,
_intervals
[0].first, value);
123
return
_intervals
.Length == 1 && _tc.Related(Equal,
_intervals
[0].first, value) && _tc.Related(Equal,
_intervals
[0].last, value);
133
if (
_intervals
.Length == 0)
139
if (_tc.Related(LessThan, _tc.MinValue,
_intervals
[0].first))
141
builder.Add((_tc.MinValue, _tc.Prev(
_intervals
[0].first)));
145
int lastIndex =
_intervals
.Length - 1;
148
builder.Add((_tc.Next(
_intervals
[i].last), _tc.Prev(
_intervals
[i + 1].first)));
152
if (_tc.Related(LessThan,
_intervals
[lastIndex].last, _tc.MaxValue))
154
builder.Add((_tc.Next(
_intervals
[lastIndex].last), _tc.MaxValue));
168
var left = this.
_intervals
;
169
var right = other.
_intervals
;
245
var left = this.
_intervals
;
246
var right = other.
_intervals
;
317
return string.Join(",", this.
_intervals
.Select(p => $"[{_tc.ToString(p.first)}..{_tc.ToString(p.last)}]"));
322
this.
_intervals
.SequenceEqual(other.
_intervals
);
326
return Hash.Combine(Hash.CombineValues(
_intervals
),
_intervals
.Length);