12 implementations of ToConstantValue
Microsoft.CodeAnalysis.CSharp (12)
Utilities\ValueSetFactory.ByteTC.cs (1)
57ConstantValue INumericTC<byte>.ToConstantValue(byte value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.CharTC.cs (1)
67ConstantValue INumericTC<char>.ToConstantValue(char value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.DecimalTC.cs (1)
37public ConstantValue ToConstantValue(decimal value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.DoubleTC.cs (1)
85ConstantValue INumericTC<double>.ToConstantValue(double value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.IntTC.cs (1)
67public ConstantValue ToConstantValue(int value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.LongTC.cs (1)
57ConstantValue INumericTC<long>.ToConstantValue(long value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.SByteTC.cs (1)
56public ConstantValue ToConstantValue(sbyte value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.ShortTC.cs (1)
57ConstantValue INumericTC<short>.ToConstantValue(short value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.SingleTC.cs (1)
89ConstantValue INumericTC<float>.ToConstantValue(float value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.UIntTC.cs (1)
51public ConstantValue ToConstantValue(uint value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.ULongTC.cs (1)
57ConstantValue INumericTC<ulong>.ToConstantValue(ulong value) => ConstantValue.Create(value);
Utilities\ValueSetFactory.UShortTC.cs (1)
51ConstantValue INumericTC<ushort>.ToConstantValue(ushort value) => ConstantValue.Create(value);
5 references to ToConstantValue
Microsoft.CodeAnalysis.CSharp (5)
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
66return _tc.ToConstantValue(_tc.NaN);
Utilities\ValueSetFactory.FloatingValueSetFactory.cs (1)
32return _tc.ToConstantValue(_tc.Random(random));
Utilities\ValueSetFactory.NumericValueSet.cs (2)
67return _tc.ToConstantValue(t._intervals[0].first); 68return _tc.ToConstantValue(this._intervals[this._intervals.Length - 1].last);
Utilities\ValueSetFactory.NumericValueSetFactory.cs (1)
60return _tc.ToConstantValue(_tc.Random(random));