26 references to NarrowingValue
Microsoft.CodeAnalysis.VisualBasic (5)
Semantics\Conversions.vb (5)
483Const NAV As Integer = ConversionKind.NarrowingValue 563Return ConversionKind.NarrowingValue 3425Return ConversionKind.NarrowingValue ' Shortcut 3431Return ConversionKind.NarrowingValue 3442Return ConversionKind.NarrowingValue
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (21)
Binding\ForEachTests.vb (2)
4603Assert.Equal(ConversionKind.NarrowingValue, info.CurrentConversion.Kind) 4661Assert.Equal(ConversionKind.NarrowingValue, info.CurrentConversion.Kind)
Semantics\Conversions.vb (15)
62Assert.Equal(ConversionKind.NarrowingValue, ClassifyDirectCastAssignment(m13p(c), m13p(a), methodBodyBinder)) ' Integer) 63Assert.Equal(ConversionKind.NarrowingValue, ClassifyDirectCastAssignment(m13p(c), m13p(b), methodBodyBinder)) ' Integer) 123Assert.Equal(ConversionKind.NarrowingValue, ClassifyTryCastAssignment(m13p(c), m13p(a), methodBodyBinder)) ' Integer) ' error BC30792: 'TryCast' operand must be reference type, but 'Integer' is a value type. 124Assert.Equal(ConversionKind.NarrowingValue, ClassifyTryCastAssignment(m13p(c), m13p(b), methodBodyBinder)) ' Integer) ' error BC30792: 'TryCast' operand must be reference type, but 'Integer' is a value type. 1925Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m10p(f), m10p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Structure2'. 1926Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m10p(f), m10p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.ValueType' to 'Structure2'. 1927Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m10p(h), m10p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Enum1'. 1928Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m10p(h), m10p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.ValueType' to 'Enum1'. 1929Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m10p(h), m10p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Enum' to 'Enum1'. 1930Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m10p(f), m10p(d))) 'error BC30512: Option Strict On disallows implicit conversions from 'Interface1' to 'Structure2'. 1931Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m10p(f), m10p(i))) 'error BC30512: Option Strict On disallows implicit conversions from 'Interface3' to 'Structure2'. 1955Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m11p(d), m11p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Structure2?'. 1956Assert.Equal(ConversionKind.NarrowingValue, ClassifyPredefinedAssignment(m11p(d), m11p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.ValueType' to 'Structure2?'. 2128Return ConversionKind.NarrowingValue 2423Return ConversionKind.NarrowingValue
Semantics\GetSemanticInfoTests.vb (1)
3383Assert.Equal(ConversionKind.NarrowingValue, semanticSummary.ImplicitConversion.Kind)
Semantics\IFOperatorTest.vb (2)
177Assert.Equal(ConversionKind.NarrowingValue, semanticInfos(0).ImplicitConversion.Kind) 957Assert.Equal(ConversionKind.NarrowingValue, semanticInfos(0).ImplicitConversion.Kind)
Semantics\MultiDimensionalTest.vb (1)
1194Assert.Equal(ConversionKind.NarrowingValue, info.CurrentConversion.Kind)