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