1 write to Type
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\Conversions.vb (1)
1444
Me.
Type
= type
35 references to Type
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (35)
Semantics\Conversions.vb (35)
621
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
623
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
625
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
628
ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
632
Dim typeConv = ClassifyConversion(mv.
Type
, numericType)
667
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
669
ElseIf integralTypes.Contains(mv.
Type
) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.
Type
.IsEnumType() AndAlso Not numericType.IsEnumType() Then
674
ElseIf mv.
Type
.IsEnumType() Then
685
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
699
ElseIf Not integralTypes.Contains(mv.
Type
) OrElse Not integralTypes.Contains(numericType) Then
751
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)
756
conv = ClassifyConversion(mv.
Type
, nullableType2) Or
934
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
936
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
938
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
939
constant = New BoundConversion(dummyTree.GetVisualBasicRoot(Nothing), New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
941
Dim typeConv = ClassifyConversion(mv.
Type
, booleanType)
1182
Dim v = ConstantValue.Create(mv.Value, mv.
Type
.GetConstantValueTypeDiscriminator())
1184
Assert.Equal(v.Discriminator, mv.
Type
.GetConstantValueTypeDiscriminator())
1186
literal = New BoundLiteral(dummyTree.GetVisualBasicRoot(Nothing), v, mv.
Type
)
1189
ConversionKind.Widening, True, True, v, mv.
Type
, Nothing)
1193
Dim typeConv = ClassifyConversion(mv.
Type
, numericType)
1227
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
1229
ElseIf integralTypes.Contains(mv.
Type
) AndAlso numericType.IsEnumType() Then
1231
ElseIf integralTypes.Contains(mv.
Type
) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.
Type
.IsEnumType() AndAlso Not numericType.IsEnumType() Then
1236
ElseIf mv.
Type
.IsEnumType() Then
1247
If mv.
Type
Is doubleType AndAlso numericType Is singleType Then
1261
ElseIf Not integralTypes.Contains(mv.
Type
) OrElse Not integralTypes.Contains(numericType) Then
1303
If numericType.IsEnumType() OrElse mv.
Type
.IsEnumType() Then
1319
ConversionKind.Widening, True, True, ConstantValue.Default(mv.
Type
.GetConstantValueTypeDiscriminator()), mv.
Type
, Nothing)
1324
conv = ClassifyConversion(mv.
Type
, nullableType2) Or