1 write to Type
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\Conversions.vb (1)
1426
Me.
Type
= type
35 references to Type
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (35)
Semantics\Conversions.vb (35)
620
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
622
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
624
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
627
ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
631
Dim typeConv = ClassifyConversion(mv.
Type
, numericType)
666
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
668
ElseIf integralTypes.Contains(mv.
Type
) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.
Type
.IsEnumType() AndAlso Not numericType.IsEnumType() Then
673
ElseIf mv.
Type
.IsEnumType() Then
684
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
698
ElseIf Not integralTypes.Contains(mv.
Type
) OrElse Not integralTypes.Contains(numericType) Then
750
Dim zero = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(DirectCast(dummyTree.GetRoot(Nothing), VisualBasicSyntaxNode), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Default(mv.
Type
.GetConstantValueTypeDiscriminator()), mv.
Type
, Nothing)
755
conv = ClassifyConversion(mv.
Type
, nullableType2) Or
933
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
935
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
937
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
938
constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
940
Dim typeConv = ClassifyConversion(mv.
Type
, booleanType)
1180
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
1182
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
1184
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
1187
ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
1191
Dim typeConv = ClassifyConversion(mv.
Type
, numericType)
1225
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
1227
ElseIf integralTypes.Contains(mv.
Type
) AndAlso numericType.IsEnumType() Then
1229
ElseIf integralTypes.Contains(mv.
Type
) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.
Type
.IsEnumType() AndAlso Not numericType.IsEnumType() Then
1234
ElseIf mv.
Type
.IsEnumType() Then
1245
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
1259
ElseIf Not integralTypes.Contains(mv.
Type
) OrElse Not integralTypes.Contains(numericType) Then
1301
If numericType.IsEnumType() OrElse mv.
Type
.IsEnumType() Then
1317
ConversionKind.Widening, True, True, ConstantValue.Default(mv.
Type
.GetConstantValueTypeDiscriminator()), mv.
Type
, Nothing)
1322
conv = ClassifyConversion(mv.
Type
, nullableType2) Or