49 references to Narrowing
Microsoft.CodeAnalysis.VisualBasic (49)
Binding\Binder_Delegates.vb (1)
328
delegateConversions = delegateConversions Or ConversionKind.
Narrowing
CodeGen\EmitConversion.vb (1)
179
If (conversion.ConversionKind And ConversionKind.
Narrowing
) <> 0 Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
156
conversionKind:=ConversionKind.
Narrowing
Or ConversionKind.UserDefined,
Semantics\Conversions.vb (42)
316
NarrowingNumeric =
[Narrowing]
Or Numeric
323
NarrowingNullable =
[Narrowing]
Or Nullable
327
NarrowingReference =
[Narrowing]
Or Reference
331
NarrowingArray =
[Narrowing]
Or Array
335
NarrowingTypeParameter =
[Narrowing]
Or TypeParameter
339
NarrowingValue =
[Narrowing]
Or Value
343
NarrowingString =
[Narrowing]
Or [String]
347
NarrowingBoolean =
[Narrowing]
Or [Boolean]
409
NarrowingTuple =
[Narrowing]
Or Tuple
619
conv = (conv And Not ConversionKind.Widening) Or ConversionKind.
Narrowing
Or ConversionKind.InvolvesEnumTypeConversions
1136
If(IsNarrowingMethodConversion(bound.MethodConversionKind, isForAddressOf:=False), ConversionKind.
Narrowing
, ConversionKind.Widening) Or
1220
Return ConversionKind.
Narrowing
1337
result = ConversionKind.
Narrowing
1646
conv = (conv And (Not ConversionKind.
Narrowing
)) Or ConversionKind.Widening
1975
Return ConversionKind.
Narrowing
2001
Return ConversionKind.
Narrowing
Or (conv And ConversionKind.InvolvesEnumTypeConversions)
2023
Return ConversionKind.
Narrowing
Or (conv And ConversionKind.InvolvesEnumTypeConversions)
2159
conv = New KeyValuePair(Of ConversionKind, MethodSymbol)((conv.Key And Not ConversionKind.
Narrowing
) Or
2179
newConv = (newConv And Not ConversionKind.
Narrowing
) Or ConversionKind.Widening
2386
Debug.Assert((conv And Not (ConversionKind.Widening Or ConversionKind.
Narrowing
Or
2424
Debug.Assert((conv And Not (ConversionKind.Widening Or ConversionKind.
Narrowing
Or
2539
Const validBits As ConversionKind = (ConversionKind.Widening Or ConversionKind.
Narrowing
Or
2556
Return (backwardConv And Not (ConversionKind.Widening Or ConversionKind.NarrowingDueToContraVarianceInDelegate)) Or ConversionKind.
Narrowing
2579
_conv = ConversionKind.
Narrowing
OrElse
2581
_conv = (ConversionKind.
Narrowing
Or ConversionKind.InvolvesEnumTypeConversions) OrElse
2582
_conv = (ConversionKind.
Narrowing
Or ConversionKind.VarianceConversionAmbiguity))))
2660
addConv = ConversionKind.
Narrowing
Or (addConv And (ConversionKind.InvolvesEnumTypeConversions Or ConversionKind.VarianceConversionAmbiguity))
2663
Const validNonidentityBits As ConversionKind = (ConversionKind.Widening Or ConversionKind.
Narrowing
Or
2683
_conv = ConversionKind.
Narrowing
Or ConversionKind.VarianceConversionAmbiguity
2726
Return ConversionKind.
Narrowing
2851
Return ConversionKind.
Narrowing
Or ConversionKind.NarrowingDueToContraVarianceInDelegate Or involvesEnumTypeConversions
2980
Return ConversionKind.AnonymousDelegate Or ConversionKind.
Narrowing
Or additionalFlags
3418
Debug.Assert((conv And Not (ConversionKind.Widening Or ConversionKind.
Narrowing
Or
3885
Debug.Assert((conv And Not (ConversionKind.Widening Or ConversionKind.
Narrowing
Or
4441
((conv And ConversionKind.Widening) <> 0) <> ((conv And ConversionKind.
Narrowing
) <> 0))
4447
((conv And ConversionKind.Widening) <> 0) <> ((conv And ConversionKind.
Narrowing
) <> 0))
4448
Return (conv And ConversionKind.
Narrowing
) <> 0
4452
Return (conv And (ConversionKind.
Narrowing
Or ConversionKind.Widening)) = 0
4456
Return (conv And (ConversionKind.
Narrowing
Or ConversionKind.Widening)) <> 0
4461
((conv And ConversionKind.Widening) <> 0) <> ((conv And ConversionKind.
Narrowing
) <> 0))
4466
Return (conv And (ConversionKind.
Narrowing
Or ConversionKind.Widening Or ConversionKind.FailedDueToNumericOverflow)) = ConversionKind.FailedDueToNumericOverflow
4470
Return (conv And (ConversionKind.
Narrowing
Or ConversionKind.Widening Or ConversionKind.FailedDueToQueryLambdaBodyMismatch)) = ConversionKind.FailedDueToQueryLambdaBodyMismatch
Semantics\Operators.vb (2)
1979
result = New KeyValuePair(Of ConversionKind, MethodSymbol)(ConversionKind.
Narrowing
Or ConversionKind.UserDefined, bestMatch)
2012
result = New KeyValuePair(Of ConversionKind, MethodSymbol)(ConversionKind.
Narrowing
Or
Semantics\TypeInference\TypeInferenceCollection.vb (2)
468
conversion = ConversionKind.
Narrowing
488
conversion = ConversionKind.
Narrowing