22 references to Create
Microsoft.CodeAnalysis (4)
Compilation\Expression.cs (1)
36return ConstantValue.Create((double)value);
ConstantValue.cs (1)
386case ConstantValueTypeDiscriminator.Double: return Create((double)value);
MetadataReader\MetadataDecoder.cs (1)
1107return ConstantValue.Create(sigReader.ReadDouble());
MetadataReader\PEModule.cs (1)
3465return ConstantValue.Create(reader.ReadDouble());
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
1598return ConstantValue.Create(sourceConstantValue.DoubleValue);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
1097constantOne = ConstantValue.Create(1.0);
Utilities\ValueSetFactory.DoubleTC.cs (1)
83ConstantValue INumericTC<double>.ToConstantValue(double value) => ConstantValue.Create(value);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\ConstantTests.cs (2)
4000floatConst = ConstantValue.Create(Math.Round(1f / 3f, 5)), 4001doubleConst = ConstantValue.Create(Math.Round((double)1 / 3, 8)),
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
100(SpecialType.System_Double, double doubleVal) => ConstantValue.Create(doubleVal),
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
121var cv3 = ConstantValue.Create((double)-1.234);
Microsoft.CodeAnalysis.VisualBasic (3)
Semantics\CompileTimeCalculations.vb (1)
412Return ConstantValue.Create(resultValue)
Semantics\Operators.vb (2)
781result = ConstantValue.Create(value) 1409result = ConstantValue.Create(resultValue)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Semantics\Conversions.vb (5)
774Dim doubleValue = ConstantValue.Create(dbl) 787doubleValue = ConstantValue.Create(dbl) 800doubleValue = ConstantValue.Create(dbl) 813doubleValue = ConstantValue.Create(dbl) 826doubleValue = ConstantValue.Create(dbl)
Semantics\OverloadResolution.vb (3)
202Dim doubleConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(0.0R), c1.GetSpecialType(System_Double), Nothing) 2883Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing) 3074Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing)