90 references to BoundConversion
Microsoft.CodeAnalysis.VisualBasic (90)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
1382Public Overrides Function VisitConversion(node As BoundConversion) As BoundNode
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1654value = DirectCast(value, BoundConversion).Operand
Binding\Binder_Attributes.vb (1)
791Dim conv = DirectCast(node, BoundConversion)
Binding\Binder_Conversions.vb (3)
463Debug.Assert(argument.Kind <> BoundKind.Conversion OrElse DirectCast(argument, BoundConversion).ExplicitCastInCode OrElse 984) As BoundConversion 1096) As BoundConversion
Binding\Binder_Delegates.vb (2)
140Dim boundConversion = DirectCast(boundFirstArgument, BoundConversion) 1241Dim receiver = DirectCast(methodGroup.ReceiverOpt, BoundConversion)
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 (3)
475Dim conversion = DirectCast(left, BoundConversion) 503Dim conversion = DirectCast(right, BoundConversion) 941Dim conv = DirectCast(cast, BoundConversion)
Binding\Binder_Statements.vb (1)
4008Debug.Assert(collectionType IsNot Nothing OrElse OptionStrict <> OptionStrict.On AndAlso collection.Kind = BoundKind.Conversion AndAlso DirectCast(collection, BoundConversion).Operand.IsNothingLiteral)
Binding\Binder_Utils.vb (1)
1330Dim conv = DirectCast(boundExpression, BoundConversion)
Binding\MemberSemanticModel.vb (3)
795Dim conversion = DirectCast(originalCollection, BoundConversion) 2180Dim conversion = DirectCast(node, BoundConversion) 2363Public Overrides Function VisitConversion(node As BoundConversion) As BoundNode
BoundTree\BoundAssignmentOperator.vb (2)
105rightNode = DirectCast(rightNode, BoundConversion).Operand 130leftNode = DirectCast(leftNode, BoundConversion).Operand
BoundTree\BoundConversion.vb (1)
88expr = DirectCast(expr, BoundConversion).Operand
BoundTree\BoundExpressionExtensions.vb (2)
41constValue = DirectCast(node, BoundConversion).Operand.ConstantValueOpt 507Dim conversion = DirectCast(node, BoundConversion)
BoundTree\BoundTreeVisitor.vb (1)
40Return VisitConversion(CType(node, BoundConversion), arg)
BoundTree\BoundUserDefinedConversion.vb (8)
16Return DirectCast([Call].Arguments(0), BoundConversion).Operand 23Public ReadOnly Property InConversionOpt As BoundConversion 26Return DirectCast([Call].Arguments(0), BoundConversion) 33Public ReadOnly Property OutConversionOpt As BoundConversion 36Return DirectCast(UnderlyingExpression, BoundConversion) 46Return DirectCast(DirectCast(UnderlyingExpression, BoundConversion).Operand, BoundCall) 56Dim outConversion As BoundConversion = OutConversionOpt 65Dim inConversion As BoundConversion = InConversionOpt
CodeGen\EmitConversion.vb (4)
55Private Sub EmitConvertIntrinsic(conversion As BoundConversion, underlyingFrom As PrimitiveTypeCode, underlyingTo As PrimitiveTypeCode) 144Private Sub EmitConvertSimpleNumeric(conversion As BoundConversion, typeFrom As PrimitiveTypeCode, typeTo As PrimitiveTypeCode, checked As Boolean) 150Private Sub EmitConversionExpression(conversion As BoundConversion, used As Boolean) 442Private Function ConversionHasSideEffects(conversion As BoundConversion) As Boolean
CodeGen\EmitExpression.vb (1)
99EmitConversionExpression(DirectCast(expression, BoundConversion), used)
Compilation\SemanticModel.vb (1)
979Dim conversionNode = DirectCast(highestExpr, BoundConversion)
Generated\BoundNodes.xml.Generated.vb (7)
2152Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, checked As Boolean, explicitCastInCode As Boolean, constantValueOpt As ConstantValue, extendedInfoOpt As BoundExtendedConversionInfo, type As TypeSymbol) As BoundConversion 9419Return VisitConversion(CType(node, BoundConversion), arg) 9851Public Overridable Function VisitConversion(node As BoundConversion, arg As A) As R 10554Public Overridable Function VisitConversion(node As BoundConversion) As BoundNode 11290Public Overrides Function VisitConversion(node As BoundConversion) As BoundNode 12278Public Overrides Function VisitConversion(node As BoundConversion) As BoundNode 13447Public Overrides Function VisitConversion(node As BoundConversion, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
441Public Overrides Function VisitConversion(node As BoundConversion) As BoundNode 442Dim rewritten = DirectCast(MyBase.VisitConversion(node), BoundConversion)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
322Public Overrides Function VisitConversion(node As BoundConversion) As BoundNode
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
222Return VisitConversion(DirectCast(node, BoundConversion))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
548Dim conversion = DirectCast(originalRight, BoundConversion)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (4)
53Dim conversion = DirectCast(convTestExpr, BoundConversion) 101Private Function BuildLambdaBodyForCoalesce(conversion As BoundConversion, toType As TypeSymbol, lambdaParameter As ParameterSymbol, isChecked As Boolean) As BoundExpression 179Private Function ReplaceArgWithParameterInUserDefinedConversion(conversion As BoundConversion, 190Dim outConv As BoundConversion = userDefinedConv.OutConversionOpt
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
20Private Function VisitConversion(node As BoundConversion) As BoundExpression 391Dim outerConversion As BoundConversion = node.OutConversionOpt
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
360Public Overrides Function VisitConversion(conversion As BoundConversion) As BoundNode
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
957Public Overrides Function VisitConversion(conversion As BoundConversion) As BoundNode
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
422Dim conversion = DirectCast(nodeToCheck, BoundConversion)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
188Dim cast = DirectCast(operand, BoundConversion)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
29Dim boundConversion = DirectCast(node.ConvertedTestExpression, BoundConversion)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (21)
11Public Overrides Function VisitConversion(node As BoundConversion) As BoundNode 122returnValue = TransformRewrittenConversion(DirectCast(returnValue, BoundConversion)) 159Dim conversion = DirectCast(rewrittenNode, BoundConversion) 167Private Function RewriteTupleConversion(node As BoundConversion) As BoundExpression 230Private Function RewriteLambdaRelaxationConversion(node As BoundConversion) As BoundNode 244returnValue = TransformRewrittenConversion(DirectCast(returnValue, BoundConversion)) 313Private Function RewriteAnonymousDelegateConversion(node As BoundConversion) As BoundNode 368Dim t = DirectCast(node, BoundConversion) 382Private Function RewriteNullableConversion(node As BoundConversion) As BoundExpression 395Private Function RewriteNullableConversion(node As BoundConversion, 521node As BoundConversion, 617Dim outConversion As BoundConversion = node.OutConversionOpt 710Private Function TransformRewrittenConversion(rewrittenConversion As BoundConversion) As BoundExpression 787Private Function RewriteReferenceTypeToCharArrayRankOneConversion(node As BoundConversion, typeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression 820Private Shared Function RewriteAsDirectCast(node As BoundConversion) As BoundExpression 832Private Function RewriteFromObjectConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression 910Private Function RewriteToStringConversion(node As BoundConversion, underlyingTypeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression 997Private Function RewriteFromStringConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression 1055Private Function RewriteNumericOrBooleanToDecimalConversion(node As BoundConversion, underlyingTypeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression 1136Private Function RewriteDecimalToNumericOrBooleanConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression 1191Private Function RewriteFloatingToIntegralConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
32Dim conversion = DirectCast(node.Collection, BoundConversion) 202Dim conversion = DirectCast(collectionExpression, BoundConversion)
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
55Private Function RewriteInterpolatedStringConversion(conversion As BoundConversion) As BoundExpression
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (3)
166Dim conversion = DirectCast(expr, BoundConversion) 229Private Shared Function IsConversionFromUnderlyingToNullable(conversion As BoundConversion) As Boolean 378If IsConversionFromUnderlyingToNullable(DirectCast(expr, BoundConversion)) Then
Lowering\SyntheticBoundNodeFactory.vb (2)
1014Public Function Convert(type As TypeSymbol, arg As BoundExpression, Optional isChecked As Boolean = False) As BoundConversion 1024Public Function Convert(type As TypeSymbol, arg As BoundExpression, convKind As ConversionKind, Optional isChecked As Boolean = False) As BoundConversion
Semantics\Conversions.vb (1)
4240Dim conversion = DirectCast(expressionOpt, BoundConversion)