17 references to Create
Microsoft.CodeAnalysis (2)
Compilation\Expression.cs (1)
38
return ConstantValue.
Create
(1, ConstantValueTypeDiscriminator.Int32);
ConstantValue.cs (1)
353
return
Create
(value, discriminator);
Microsoft.CodeAnalysis.CSharp (7)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
2011
return MakeLiteral(syntax, ConstantValue.
Create
(rewrittenExpr.ConstantValueOpt.IsNull, ConstantValueTypeDiscriminator.Boolean), boolType);
2013
return MakeLiteral(syntax, ConstantValue.
Create
(!rewrittenExpr.ConstantValueOpt.IsNull, ConstantValueTypeDiscriminator.Boolean), boolType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
872
constantValue: ConstantValue.
Create
(dimension, ConstantValueTypeDiscriminator.Int32),
927
constantValue: ConstantValue.
Create
(dimension, ConstantValueTypeDiscriminator.Int32),
Lowering\SyntheticBoundNodeFactory.cs (2)
1639
return Literal(ConstantValue.
Create
(rewrittenExpr.ConstantValueOpt.IsNull, ConstantValueTypeDiscriminator.Boolean), boolType);
1641
return Literal(ConstantValue.
Create
(rewrittenExpr.ConstantValueOpt.IsNull, ConstantValueTypeDiscriminator.Boolean), boolType);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1013
return ConstantValue.
Create
(arg.ValueInternal, constantValueDiscriminator);
Microsoft.CodeAnalysis.UnitTests (4)
CorLibTypesTests.cs (4)
94
Assert.Throws<InvalidOperationException>(() => { ConstantValue.
Create
(null, ConstantValueTypeDiscriminator.Bad); });
101
var cv1 = ConstantValue.
Create
(null, ConstantValueTypeDiscriminator.Null);
199
var cv = ConstantValue.
Create
(null, ConstantValueTypeDiscriminator.Null);
202
cv = ConstantValue.
Create
(null, ConstantValueTypeDiscriminator.String);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\SourceParameterSymbol.vb (1)
436
Return ConstantValue.
Create
(arg.ValueInternal, constantValueDiscriminator)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Semantics\Conversions.vb (3)
620
Dim v = ConstantValue.
Create
(mv.Value, mv.Type.GetConstantValueTypeDiscriminator())
933
Dim v = ConstantValue.
Create
(mv.Value, mv.Type.GetConstantValueTypeDiscriminator())
1180
Dim v = ConstantValue.
Create
(mv.Value, mv.Type.GetConstantValueTypeDiscriminator())