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