1 implementation of ToConstantValue
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.StringTC.cs (1)
44ConstantValue IEquatableValueTC<string>.ToConstantValue(string value) => ConstantValue.Create(value);
5 references to ToConstantValue
Microsoft.CodeAnalysis.CSharp (5)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (4)
54return _tc.ToConstantValue(_membersIncludedOrExcluded.OrderBy(k => k).First()); 59return _tc.ToConstantValue((T)(object)""); 62return _tc.ToConstantValue((T)(object)c.ToString()); 70return _tc.ToConstantValue(value);
Utilities\ValueSetFactory.EnumeratedValueSetFactory.cs (1)
60return _tc.ToConstantValue(_tc.RandomValues(1, random, 100)[0]);