17 references to Create
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Conversions.cs (1)
1702return ConstantValue.Create(DoUncheckedConversion(destinationType, sourceValue), destinationType);
Binder\Binder_Expressions.cs (1)
6261cv = ConstantValue.Create(value, specialType);
Binder\Binder_InterpolatedString.cs (1)
167var constantValue = ConstantValue.Create(text, SpecialType.System_String);
Binder\Binder_Operators.cs (7)
1810return ConstantValue.Create(newValue, resultType); 1839return ConstantValue.Create(newValue, resultType); 1858return ConstantValue.Create(newValue, resultType); 1880return ConstantValue.Create(newValue, resultType); 2829return ConstantValue.Create(newValue, resultType); 2848return ConstantValue.Create(newValue, resultType); 2870return ConstantValue.Create(newValue, resultType);
Symbols\TypedConstantExtensions.cs (3)
54ConstantValue valueConstant = ConstantValue.Create(constant.ValueInternal, splType); 89ConstantValue memberConstant = ConstantValue.Create(field.ConstantValue, specialType); 167ConstantValue memberConstant = ConstantValue.Create(field.ConstantValue, specialType);
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\Binder_Expressions.vb (1)
4441cv = ConstantValue.Create(value, specialType)
Symbols\TypedConstant.vb (3)
55Dim valueConstant As ConstantValue = ConstantValue.Create(constant.ValueInternal, splType) 82Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) 147Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType)