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