1 write to Type
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\Conversions.vb (1)
1439
Me.
Type
= type
35 references to Type
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (35)
Semantics\Conversions.vb (35)
616
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
618
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
620
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
623
ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
627
Dim typeConv = ClassifyConversion(mv.
Type
, numericType)
662
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
664
ElseIf integralTypes.Contains(mv.
Type
) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.
Type
.IsEnumType() AndAlso Not numericType.IsEnumType() Then
669
ElseIf mv.
Type
.IsEnumType() Then
680
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
694
ElseIf Not integralTypes.Contains(mv.
Type
) OrElse Not integralTypes.Contains(numericType) Then
746
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)
751
conv = ClassifyConversion(mv.
Type
, nullableType2) Or
929
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
931
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
933
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
934
constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
936
Dim typeConv = ClassifyConversion(mv.
Type
, booleanType)
1177
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
1179
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
1181
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
1184
ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
1188
Dim typeConv = ClassifyConversion(mv.
Type
, numericType)
1222
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
1224
ElseIf integralTypes.Contains(mv.
Type
) AndAlso numericType.IsEnumType() Then
1226
ElseIf integralTypes.Contains(mv.
Type
) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.
Type
.IsEnumType() AndAlso Not numericType.IsEnumType() Then
1231
ElseIf mv.
Type
.IsEnumType() Then
1242
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
1256
ElseIf Not integralTypes.Contains(mv.
Type
) OrElse Not integralTypes.Contains(numericType) Then
1298
If numericType.IsEnumType() OrElse mv.
Type
.IsEnumType() Then
1314
ConversionKind.Widening, True, True, ConstantValue.Default(mv.
Type
.GetConstantValueTypeDiscriminator()), mv.
Type
, Nothing)
1319
conv = ClassifyConversion(mv.
Type
, nullableType2) Or