49 references to NarrowingReference
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (1)
69
Dim boundTryCast As BoundExpression = New BoundTryCast(syntax, boundObjReference, ConversionKind.
NarrowingReference
,
Semantics\Conversions.vb (7)
481
Const NRF As Integer = ConversionKind.
NarrowingReference
2353
Return ConversionKind.
NarrowingReference
2363
Return ConversionKind.
NarrowingReference
Or (conv And ConversionKind.InvolvesEnumTypeConversions)
2391
Return ConversionKind.
NarrowingReference
2409
Return ConversionKind.
NarrowingReference
2500
Return ConversionKind.
NarrowingReference
Or
2507
Return ConversionKind.
NarrowingReference
Symbols\Source\SynthesizedEventAccessorSymbol.vb (2)
348
ConversionKind.
NarrowingReference
,
425
ConversionKind.
NarrowingReference
,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (39)
Semantics\Conversions.vb (38)
60
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyDirectCastAssignment(m13p(b), m13p(a), methodBodyBinder)) ' ValueType)
121
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyTryCastAssignment(m13p(b), m13p(a), methodBodyBinder)) ' ValueType)
1523
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(d), m3p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Class10'.
1524
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(c), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Class9'.
1525
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(d), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Class10'.
1526
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(d), m3p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class9' to 'Class10'.
1533
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(g), m3p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to '1-dimensional array of Integer'.
1534
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(g), m3p(f))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Array' to '1-dimensional array of Integer'.
1535
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(h), m3p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to '2-dimensional array of Integer'.
1536
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(h), m3p(f))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Array' to '2-dimensional array of Integer'.
1557
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(i), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Interface1'.
1558
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(i), m3p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class9' to 'Interface1'.
1559
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(i), m3p(e))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class11' to 'Interface1'.
1560
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(j), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Interface2'.
1561
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(j), m3p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class9' to 'Interface2'.
1562
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(k), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Interface3'.
1563
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(k), m3p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class9' to 'Interface3'.
1564
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(l), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Interface4'.
1565
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(n), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Interface6'.
1566
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(n), m3p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class9' to 'Interface6'.
1567
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(o), m3p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class8' to 'Interface7'.
1568
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(o), m3p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class9' to 'Interface7'.
1569
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(o), m3p(d))) 'error BC30512: Option Strict On disallows implicit conversions from 'Class10' to 'Interface7'.
1573
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(t), m3p(g))) 'error BC30512: Option Strict On disallows implicit conversions from '1-dimensional array of Integer' to 'System.Collections.Generic.IList(Of Long)'.
1574
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(w), m3p(u))) 'error BC30512: Option Strict On disallows implicit conversions from '1-dimensional array of Class9' to 'System.Collections.Generic.IList(Of Class11)'.
1575
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(i), m3p(l))) 'error BC30512: Option Strict On disallows implicit conversions from 'Interface4' to 'Interface1'.
1576
Assert.Equal(ConversionKind.
NarrowingReference
Or ConversionKind.DelegateRelaxationLevelNarrowing, ClassifyPredefinedAssignment(m3p(o), m3p(x))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Action' to 'Interface7'.
1578
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(x), m3p(o))) 'error BC30512: Option Strict On disallows implicit conversions from 'Interface7' to 'System.Action'.
1579
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(e), m3p(o))) 'error BC30512: Option Strict On disallows implicit conversions from 'Interface7' to 'Class11'.
1583
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(g), m3p(p))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Collections.IEnumerable' to '1-dimensional array of Integer'.
1584
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(h), m3p(p))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Collections.IEnumerable' to '2-dimensional array of Integer'.
1585
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(g), m3p(q))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Collections.Generic.IList(Of Integer)' to '1-dimensional array of Integer'.
1587
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(g), m3p(t))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Collections.Generic.IList(Of Long)' to '1-dimensional array of Integer'.
1589
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(g), m3p(w))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Collections.Generic.IList(Of Class11)' to '1-dimensional array of Integer'.
1595
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(module2, [object]))
1596
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(m3p(i), module2))
1597
Assert.Equal(ConversionKind.
NarrowingReference
, ClassifyPredefinedAssignment(module2, m3p(i)))
2425
Return ConversionKind.
NarrowingReference
Semantics\ForeachTest.vb (1)
1262
Assert.Equal(ConversionKind.
NarrowingReference
, loopInfo0.CurrentConversion.Kind)