1 interface inheriting from INumericTC
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.FloatingTC.cs (1)
12
private interface FloatingTC<T> :
INumericTC
<T>
12 implementations of INumericTC
Microsoft.CodeAnalysis.CSharp (12)
Utilities\ValueSetFactory.ByteTC.cs (1)
14
private class ByteTC :
INumericTC
<byte>
Utilities\ValueSetFactory.CharTC.cs (1)
14
private class CharTC :
INumericTC
<char>
Utilities\ValueSetFactory.DecimalTC.cs (1)
15
private class DecimalTC :
INumericTC
<decimal>
Utilities\ValueSetFactory.DoubleTC.cs (1)
14
private class DoubleTC : FloatingTC<double>,
INumericTC
<double>
Utilities\ValueSetFactory.IntTC.cs (1)
14
private class IntTC :
INumericTC
<int>
Utilities\ValueSetFactory.LongTC.cs (1)
14
private class LongTC :
INumericTC
<long>
Utilities\ValueSetFactory.SByteTC.cs (1)
14
private class SByteTC :
INumericTC
<sbyte>
Utilities\ValueSetFactory.ShortTC.cs (1)
14
private class ShortTC :
INumericTC
<short>
Utilities\ValueSetFactory.SingleTC.cs (1)
14
private class SingleTC : FloatingTC<float>,
INumericTC
<float>
Utilities\ValueSetFactory.UIntTC.cs (1)
14
private class UIntTC :
INumericTC
<uint>
Utilities\ValueSetFactory.ULongTC.cs (1)
14
private class ULongTC :
INumericTC
<ulong>
Utilities\ValueSetFactory.UShortTC.cs (1)
14
private class UShortTC :
INumericTC
<ushort>
117 references to INumericTC
Microsoft.CodeAnalysis.CSharp (117)
Utilities\ValueSetFactory.ByteTC.cs (10)
18
byte
INumericTC
<byte>.MinValue => byte.MinValue;
20
byte
INumericTC
<byte>.MaxValue => byte.MaxValue;
22
byte
INumericTC
<byte>.Zero => 0;
24
bool
INumericTC
<byte>.Related(BinaryOperatorKind relation, byte left, byte right)
43
byte
INumericTC
<byte>.Next(byte value)
49
byte
INumericTC
<byte>.Prev(byte value)
55
byte
INumericTC
<byte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (byte)0 : constantValue.ByteValue;
57
ConstantValue
INumericTC
<byte>.ToConstantValue(byte value) => ConstantValue.Create(value);
59
string
INumericTC
<byte>.ToString(byte value) => value.ToString();
61
byte
INumericTC
<byte>.Random(Random random)
Utilities\ValueSetFactory.CharTC.cs (10)
18
char
INumericTC
<char>.MinValue => char.MinValue;
20
char
INumericTC
<char>.MaxValue => char.MaxValue;
22
char
INumericTC
<char>.Zero => (char)0;
24
bool
INumericTC
<char>.Related(BinaryOperatorKind relation, char left, char right)
43
char
INumericTC
<char>.Next(char value)
49
char
INumericTC
<char>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (char)0 : constantValue.CharValue;
51
string
INumericTC
<char>.ToString(char c)
56
char
INumericTC
<char>.Prev(char value)
62
char
INumericTC
<char>.Random(Random random)
67
ConstantValue
INumericTC
<char>.ToConstantValue(char value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.DecimalTC.cs (7)
29
decimal
INumericTC
<decimal>.MinValue => decimal.MinValue;
31
decimal
INumericTC
<decimal>.MaxValue => decimal.MaxValue;
33
decimal
INumericTC
<decimal>.Zero => 0M;
89
bool
INumericTC
<decimal>.Related(BinaryOperatorKind relation, decimal left, decimal right)
108
string
INumericTC
<decimal>.ToString(decimal value) => FormattableString.Invariant($"{value:G}");
110
decimal
INumericTC
<decimal>.Prev(decimal value)
117
INumericTC
<uint> uinttc = UIntTC.Instance;
Utilities\ValueSetFactory.DoubleTC.cs (9)
18
double
INumericTC
<double>.MinValue => double.NegativeInfinity;
20
double
INumericTC
<double>.MaxValue => double.PositiveInfinity;
24
double
INumericTC
<double>.Zero => 0.0;
64
bool
INumericTC
<double>.Related(BinaryOperatorKind relation, double left, double right)
83
double
INumericTC
<double>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0.0 : constantValue.DoubleValue;
85
ConstantValue
INumericTC
<double>.ToConstantValue(double value) => ConstantValue.Create(value);
90
string
INumericTC
<double>.ToString(double value) =>
96
double
INumericTC
<double>.Prev(double value)
101
double
INumericTC
<double>.Random(Random random)
Utilities\ValueSetFactory.IntTC.cs (5)
30
int
INumericTC
<int>.MaxValue => int.MaxValue;
32
int
INumericTC
<int>.Zero => 0;
53
int
INumericTC
<int>.Next(int value)
59
int
INumericTC
<int>.Prev(int value)
69
string
INumericTC
<int>.ToString(int value) => value.ToString();
Utilities\ValueSetFactory.LongTC.cs (10)
18
long
INumericTC
<long>.MinValue => long.MinValue;
20
long
INumericTC
<long>.MaxValue => long.MaxValue;
22
long
INumericTC
<long>.Zero => 0;
24
bool
INumericTC
<long>.Related(BinaryOperatorKind relation, long left, long right)
43
long
INumericTC
<long>.Next(long value)
49
long
INumericTC
<long>.Prev(long value)
55
long
INumericTC
<long>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0L : constantValue.Int64Value;
57
ConstantValue
INumericTC
<long>.ToConstantValue(long value) => ConstantValue.Create(value);
59
string
INumericTC
<long>.ToString(long value) => value.ToString();
61
long
INumericTC
<long>.Random(Random random)
Utilities\ValueSetFactory.NumericValueSet.cs (9)
25
private readonly
INumericTC
<T> _tc;
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);
31
internal NumericValueSet(T first, T last,
INumericTC
<T> tc) : this(ImmutableArray.Create((first, last)), tc)
36
internal NumericValueSet(ImmutableArray<(T first, T last)> intervals,
INumericTC
<T> tc)
209
private static void Add(ArrayBuilder<(T first, T last)> builder, T first, T last,
INumericTC
<T> tc)
227
private static T Min(T a, T b,
INumericTC
<T> tc)
232
private static T Max(T a, T b,
INumericTC
<T> tc)
293
internal static IValueSet<T> Random(int expectedSize, Random random,
INumericTC
<T> tc)
Utilities\ValueSetFactory.NumericValueSetFactory.cs (3)
17
/// <see cref="
INumericTC
{T}"/> that provides the primitives for that type.
21
private readonly
INumericTC
<T> _tc;
27
public NumericValueSetFactory(
INumericTC
<T> tc) { this._tc = tc; }
Utilities\ValueSetFactory.SByteTC.cs (9)
17
sbyte
INumericTC
<sbyte>.MinValue => sbyte.MinValue;
19
sbyte
INumericTC
<sbyte>.MaxValue => sbyte.MaxValue;
21
sbyte
INumericTC
<sbyte>.Zero => 0;
23
bool
INumericTC
<sbyte>.Related(BinaryOperatorKind relation, sbyte left, sbyte right)
42
sbyte
INumericTC
<sbyte>.Next(sbyte value)
48
sbyte
INumericTC
<sbyte>.Prev(sbyte value)
54
sbyte
INumericTC
<sbyte>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (sbyte)0 : constantValue.SByteValue;
58
string
INumericTC
<sbyte>.ToString(sbyte value) => value.ToString();
60
sbyte
INumericTC
<sbyte>.Random(Random random)
Utilities\ValueSetFactory.ShortTC.cs (10)
18
short
INumericTC
<short>.MinValue => short.MinValue;
20
short
INumericTC
<short>.MaxValue => short.MaxValue;
22
short
INumericTC
<short>.Zero => 0;
24
bool
INumericTC
<short>.Related(BinaryOperatorKind relation, short left, short right)
43
short
INumericTC
<short>.Next(short value)
49
short
INumericTC
<short>.Prev(short value)
55
short
INumericTC
<short>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (short)0 : constantValue.Int16Value;
57
ConstantValue
INumericTC
<short>.ToConstantValue(short value) => ConstantValue.Create(value);
59
string
INumericTC
<short>.ToString(short value) => value.ToString();
61
short
INumericTC
<short>.Random(Random random)
Utilities\ValueSetFactory.SingleTC.cs (9)
18
float
INumericTC
<float>.MinValue => float.NegativeInfinity;
20
float
INumericTC
<float>.MaxValue => float.PositiveInfinity;
24
float
INumericTC
<float>.Zero => 0;
68
bool
INumericTC
<float>.Related(BinaryOperatorKind relation, float left, float right)
87
float
INumericTC
<float>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0.0F : constantValue.SingleValue;
89
ConstantValue
INumericTC
<float>.ToConstantValue(float value) => ConstantValue.Create(value);
94
string
INumericTC
<float>.ToString(float value) =>
100
float
INumericTC
<float>.Prev(float value)
105
float
INumericTC
<float>.Random(Random random)
Utilities\ValueSetFactory.UIntTC.cs (6)
18
uint
INumericTC
<uint>.MinValue => uint.MinValue;
20
uint
INumericTC
<uint>.MaxValue => uint.MaxValue;
22
uint
INumericTC
<uint>.Zero => 0;
43
uint
INumericTC
<uint>.Next(uint value)
53
string
INumericTC
<uint>.ToString(uint value) => value.ToString();
55
uint
INumericTC
<uint>.Prev(uint value)
Utilities\ValueSetFactory.ULongTC.cs (10)
18
ulong
INumericTC
<ulong>.MinValue => ulong.MinValue;
20
ulong
INumericTC
<ulong>.MaxValue => ulong.MaxValue;
22
ulong
INumericTC
<ulong>.Zero => 0;
24
bool
INumericTC
<ulong>.Related(BinaryOperatorKind relation, ulong left, ulong right)
43
ulong
INumericTC
<ulong>.Next(ulong value)
49
ulong
INumericTC
<ulong>.Prev(ulong value)
55
ulong
INumericTC
<ulong>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0UL : constantValue.UInt64Value;
57
ConstantValue
INumericTC
<ulong>.ToConstantValue(ulong value) => ConstantValue.Create(value);
59
string
INumericTC
<ulong>.ToString(ulong value) => value.ToString();
61
ulong
INumericTC
<ulong>.Random(Random random)
Utilities\ValueSetFactory.UShortTC.cs (10)
18
ushort
INumericTC
<ushort>.MinValue => ushort.MinValue;
20
ushort
INumericTC
<ushort>.MaxValue => ushort.MaxValue;
22
ushort
INumericTC
<ushort>.Zero => 0;
24
bool
INumericTC
<ushort>.Related(BinaryOperatorKind relation, ushort left, ushort right)
43
ushort
INumericTC
<ushort>.Next(ushort value)
49
ushort
INumericTC
<ushort>.FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? (ushort)0 : constantValue.UInt16Value;
51
ConstantValue
INumericTC
<ushort>.ToConstantValue(ushort value) => ConstantValue.Create(value);
53
string
INumericTC
<ushort>.ToString(ushort value) => value.ToString();
55
ushort
INumericTC
<ushort>.Prev(ushort value)
61
ushort
INumericTC
<ushort>.Random(Random random)