12 instantiations of NumericValueSet
Microsoft.CodeAnalysis.CSharp (12)
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (5)
33
return new
NumericValueSet
<int>(0, value - 1, tc);
37
return new
NumericValueSet
<int>(0, value, tc);
41
return new
NumericValueSet
<int>(Math.Max(0, value + 1), int.MaxValue, tc);
43
return new
NumericValueSet
<int>(Math.Max(0, value), int.MaxValue, tc);
47
return new
NumericValueSet
<int>(value, value, tc);
Utilities\ValueSetFactory.NumericValueSet.cs (2)
27
public static NumericValueSet<T> AllValues(INumericTC<T> tc) => new
NumericValueSet
<T>(tc.MinValue, tc.MaxValue, tc);
29
public static NumericValueSet<T> NoValues(INumericTC<T> tc) => new
NumericValueSet
<T>(ImmutableArray<(T first, T last)>.Empty, tc);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (5)
36
return new
NumericValueSet
<T>(_tc.MinValue, _tc.Prev(value), _tc);
38
return new
NumericValueSet
<T>(_tc.MinValue, value, _tc);
42
return new
NumericValueSet
<T>(_tc.Next(value), _tc.MaxValue, _tc);
44
return new
NumericValueSet
<T>(value, _tc.MaxValue, _tc);
46
return new
NumericValueSet
<T>(value, value, _tc);
32 references to NumericValueSet
Microsoft.CodeAnalysis.CSharp (32)
Utilities\ValueSetFactory.DecimalValueSetFactory.cs (3)
17
IValueSet IValueSetFactory.AllValues =>
NumericValueSet
<decimal>.AllValues(DecimalTC.Instance);
19
IValueSet IValueSetFactory.NoValues =>
NumericValueSet
<decimal>.NoValues(DecimalTC.Instance);
28
value.IsBad ?
NumericValueSet
<decimal>.AllValues(DecimalTC.Instance) : Related(relation, DecimalTC.Instance.FromConstantValue(value));
Utilities\ValueSetFactory.FloatingValueSet.cs (4)
28
RoslynDebug.Assert(numbers is
NumericValueSet
<TFloating>);
33
numbers:
NumericValueSet
<TFloating>.AllValues(tc), hasNaN: true, tc);
36
numbers:
NumericValueSet
<TFloating>.NoValues(tc), hasNaN: false, tc);
81
numbers:
NumericValueSet
<TFloating>.NoValues(tc),
Utilities\ValueSetFactory.NintValueSet.cs (2)
17
public static readonly NintValueSet AllValues = new NintValueSet(hasSmall: true, values:
NumericValueSet
<int>.AllValues(IntTC.DefaultInstance), hasLarge: true);
19
public static readonly NintValueSet NoValues = new NintValueSet(hasSmall: false, values:
NumericValueSet
<int>.NoValues(IntTC.DefaultInstance), hasLarge: false);
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (6)
21
public IValueSet AllValues =>
NumericValueSet
<int>.AllValues(IntTC.NonNegativeInstance);
23
public IValueSet NoValues =>
NumericValueSet
<int>.NoValues(IntTC.NonNegativeInstance);
32
return
NumericValueSet
<int>.NoValues(tc);
36
return
NumericValueSet
<int>.NoValues(tc);
40
return
NumericValueSet
<int>.NoValues(tc);
46
return
NumericValueSet
<int>.NoValues(tc);
Utilities\ValueSetFactory.NuintValueSet.cs (2)
17
public static readonly NuintValueSet AllValues = new NuintValueSet(values:
NumericValueSet
<uint>.AllValues(UIntTC.Instance), hasLarge: true);
19
public static readonly NuintValueSet NoValues = new NuintValueSet(values:
NumericValueSet
<uint>.NoValues(UIntTC.Instance), hasLarge: false);
Utilities\ValueSetFactory.NumericValueSet.cs (9)
27
public static
NumericValueSet
<T> AllValues(INumericTC<T> tc) => new NumericValueSet<T>(tc.MinValue, tc.MaxValue, tc);
29
public static
NumericValueSet
<T> NoValues(INumericTC<T> tc) => new NumericValueSet<T>(ImmutableArray<(T first, T last)>.Empty, tc);
65
var
t = (
NumericValueSet
<T>)this.Intersect(gz);
164
var
other = (
NumericValueSet
<T>)o;
241
var
other = (
NumericValueSet
<T>)o;
321
obj is
NumericValueSet
<T> other &&
Utilities\ValueSetFactory.NumericValueSetFactory.cs (6)
23
IValueSet IValueSetFactory.AllValues =>
NumericValueSet
<T>.AllValues(_tc);
25
IValueSet IValueSetFactory.NoValues =>
NumericValueSet
<T>.NoValues(_tc);
35
return
NumericValueSet
<T>.NoValues(_tc);
41
return
NumericValueSet
<T>.NoValues(_tc);
53
value.IsBad ?
NumericValueSet
<T>.AllValues(_tc) : Related(relation, _tc.FromConstantValue(value));
56
NumericValueSet
<T>.Random(expectedSize, random, _tc);