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