Base:
property
ConversionKind
Microsoft.CodeAnalysis.VisualBasic.Microsoft.CodeAnalysis.VisualBasic.BoundConversionOrCast.ConversionKind
64 references to ConversionKind
Microsoft.CodeAnalysis.VisualBasic (64)
Binding\Binder_Attributes.vb (1)
793Not Conversions.IsWideningConversion(conv.ConversionKind) OrElse
Binding\Binder_Delegates.vb (1)
142boundConversion.ConversionKind,
Binding\Binder_Invocation.vb (1)
3188If Not (convertedValue.Kind = BoundKind.Conversion AndAlso (DirectCast(convertedValue, BoundConversion).ConversionKind And ConversionKind.UserDefined) <> 0) Then
Binding\Binder_Operators.vb (2)
476left = conversion.Update(conversion.Operand, conversion.ConversionKind, conversion.Checked, explicitCastInCode:=False, 504right = conversion.Update(conversion.Operand, conversion.ConversionKind, conversion.Checked, explicitCastInCode:=False,
BoundTree\BoundConversion.vb (9)
43If Conversions.NoConversion(ConversionKind) Then 44Debug.Assert((ConversionKind And VisualBasic.ConversionKind.UserDefined) = 0) 46Debug.Assert(((ConversionKind And VisualBasic.ConversionKind.UserDefined) <> 0) = (Operand.Kind = BoundKind.UserDefinedConversion)) 48If Conversions.IsIdentityConversion(ConversionKind) Then 52If (ConversionKind And (ConversionKind.Lambda Or ConversionKind.AnonymousDelegate)) <> 0 Then 54Debug.Assert((ConversionKind And ConversionKind.AnonymousDelegate) <> 0 OrElse 58If (ConversionKind And ConversionKind.Tuple) <> 0 Then 70If (ConversionKind And VisualBasic.ConversionKind.Nullable) <> 0 Then 83If (ConversionKind And ConversionKind.UserDefined) <> 0 AndAlso
BoundTree\BoundUserDefinedConversion.vb (4)
58Debug.Assert(Conversions.ConversionExists(outConversion.ConversionKind) AndAlso (outConversion.ConversionKind And ConversionKind.UserDefined) = 0) 68Debug.Assert(Conversions.ConversionExists(inConversion.ConversionKind) AndAlso (inConversion.ConversionKind And ConversionKind.UserDefined) = 0)
CodeGen\EmitConversion.vb (2)
179If (conversion.ConversionKind And ConversionKind.Narrowing) <> 0 Then 198If Not Conversions.IsIdentityConversion(conversion.ConversionKind) Then
Compilation\SemanticModel.vb (1)
984conversion = New Conversion(KeyValuePairUtil.Create(conversionNode.ConversionKind,
Generated\BoundNodes.xml.Generated.vb (3)
2153If operand IsNot Me.Operand OrElse conversionKind <> Me.ConversionKind OrElse checked <> Me.Checked OrElse explicitCastInCode <> Me.ExplicitCastInCode OrElse constantValueOpt IsNot Me.ConstantValueOpt OrElse extendedInfoOpt IsNot Me.ExtendedInfoOpt OrElse type IsNot Me.Type Then 12282Return node.Update(operand, node.ConversionKind, node.Checked, node.ExplicitCastInCode, node.ConstantValueOpt, extendedInfoOpt, type) 13450New TreeDumperNode("conversionKind", node.ConversionKind, Nothing),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
455rewritten.ConversionKind,
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (2)
324If (node.ConversionKind And ConversionKind.ConvertedToExpressionTree) <> 0 Then 328If Me.IsInExpressionLambda AndAlso (node.ConversionKind And ConversionKind.Lambda) <> 0 Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
552If ((conversion.ConversionKind And ConversionKind.Nullable) <> 0) AndAlso Not conversion.ExplicitCastInCode AndAlso Not operandType.IsNullableType Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (4)
104If (conversion.ConversionKind And ConversionKind.UserDefined) = 0 Then 185Debug.Assert((conversion.ConversionKind And ConversionKind.UserDefined) <> 0) 236outConv = outConv.Update([call], outConv.ConversionKind, outConv.Checked, outConv.ExplicitCastInCode, outConv.ConstantValueOpt, 243Dim newConversionKind As ConversionKind = conversion.ConversionKind And Not ConversionKind.Nullable
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
21If Conversions.IsIdentityConversion(node.ConversionKind) AndAlso Not node.Type.IsFloatingType() Then 26Return ConvertExpression(node.Operand, node.ConversionKind, node.Operand.Type, node.Type, node.Checked, node.ExplicitCastInCode, ConversionSemantics.[Default])
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
368Return VisitLambda(lambda, (conversion.ConversionKind And ConversionKind.ConvertedToExpressionTree) <> 0)
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
965Dim result As BoundExpression = RewriteLambda(lambda, VisitType(conversion.Type), (conversion.ConversionKind And ConversionKind.ConvertedToExpressionTree) <> 0) 968conversion.ConversionKind,
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
423conversionKind = conversion.ConversionKind
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
190cast.ConversionKind, cast.Checked, cast.ExplicitCastInCode, cast.ConstantValueOpt,
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
30Dim conversion = boundConversion.ConversionKind
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (22)
13If Not _inExpressionLambda AndAlso Conversions.IsIdentityConversion(node.ConversionKind) Then 37node.ConversionKind, 45If (node.ConversionKind And ConversionKind.Nullable) <> 0 Then 61If (node.ConversionKind And ConversionKind.AnonymousDelegate) <> 0 Then 106If (node.ConversionKind And (ConversionKind.Lambda Or ConversionKind.ConvertedToExpressionTree)) = (ConversionKind.Lambda Or ConversionKind.ConvertedToExpressionTree) Then 113ElseIf (node.ConversionKind And ConversionKind.InterpolatedString) = ConversionKind.InterpolatedString Then 116ElseIf (node.ConversionKind And (ConversionKind.Tuple Or ConversionKind.Nullable)) = ConversionKind.Tuple Then 160Return conversion.ConversionKind = ConversionKind.Identity AndAlso Not conversion.ExplicitCastInCode 240node.ConversionKind, node.Checked, node.ExplicitCastInCode, 247node.ConversionKind, node.Checked, node.ExplicitCastInCode, 314Debug.Assert(Not Conversions.IsIdentityConversion(node.ConversionKind)) 387If Conversions.IsIdentityConversion(node.ConversionKind) Then 464node.ConversionKind And (Not ConversionKind.Nullable), 537Debug.Assert((convKind And ConversionKind.Tuple) = (node.ConversionKind And ConversionKind.Tuple)) 720Debug.Assert(rewrittenConversion.ConversionKind = ConversionKind.WideningNothingLiteral OrElse 721(Conversions.IsIdentityConversion(rewrittenConversion.ConversionKind) AndAlso 723(rewrittenConversion.ConversionKind And (ConversionKind.Reference Or ConversionKind.Array)) <> 0) 822(node.ConversionKind And (Not ConversionKind.DelegateRelaxationLevelMask)) = 829Return New BoundDirectCast(node.Syntax, node.Operand, node.ConversionKind, node.Type, Nothing) 1201Return New BoundConversion(node.Syntax, callOperand.Arguments(0), node.ConversionKind, node.Checked, node.ExplicitCastInCode, node.Type) 1227Debug.Assert(node.ConversionKind = Conversions.ClassifyConversion(mathRound.ReturnType, node.Type, CompoundUseSiteInfo(Of AssemblySymbol).Discarded).Key) 1229result = New BoundConversion(node.Syntax, callMathRound, node.ConversionKind,
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
57Debug.Assert((conversion.ConversionKind And ConversionKind.InterpolatedString) = ConversionKind.InterpolatedString)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
230Return (conversion.ConversionKind And (ConversionKind.Widening Or ConversionKind.Nullable Or ConversionKind.UserDefined)) = (ConversionKind.Widening Or ConversionKind.Nullable) AndAlso