38 references to BoundDirectCast
Microsoft.CodeAnalysis.VisualBasic (38)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
2348Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1657value = DirectCast(value, BoundDirectCast).Operand
Binding\Binder_Attributes.vb (1)
763Dim conv = DirectCast(node, BoundDirectCast)
Binding\Binder_Operators.vb (1)
946Dim conv = DirectCast(cast, BoundDirectCast)
Binding\Binder_Utils.vb (1)
1320Dim conv = DirectCast(boundExpression, BoundDirectCast)
Binding\MemberSemanticModel.vb (1)
2368Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode
BoundTree\BoundExpressionExtensions.vb (1)
48constValue = DirectCast(node, BoundDirectCast).Operand.ConstantValueOpt
BoundTree\BoundTreeVisitor.vb (1)
42Return VisitDirectCast(CType(node, BoundDirectCast), arg)
CodeGen\EmitConversion.vb (3)
283Private Function IsUnboxingDirectCast(conversion As BoundDirectCast) As Boolean 295Private Sub EmitDirectCastExpression(conversion As BoundDirectCast, used As Boolean) 454Private Function ConversionHasSideEffects(conversion As BoundDirectCast) As Boolean
CodeGen\EmitExpression.vb (6)
102EmitDirectCastExpression(DirectCast(expression, BoundDirectCast), used) 725ElseIf receiver.Kind = BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then 726EmitExpression(DirectCast(receiver, BoundDirectCast).Operand, True) 756If receiver.Kind = BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver, BoundDirectCast)) Then 900Dim convOperand = DirectCast(receiver, BoundDirectCast).Operand 1514Dim conversion = DirectCast(expr, BoundDirectCast)
Generated\BoundNodes.xml.Generated.vb (7)
2375Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, suppressVirtualCalls As Boolean, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol) As BoundDirectCast 9427Return VisitDirectCast(CType(node, BoundDirectCast), arg) 9867Public Overridable Function VisitDirectCast(node As BoundDirectCast, arg As A) As R 10570Public Overridable Function VisitDirectCast(node As BoundDirectCast) As BoundNode 11313Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode 12303Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode 13481Public Overrides Function VisitDirectCast(node As BoundDirectCast, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
400Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode 401Dim rewritten = DirectCast(MyBase.VisitDirectCast(node), BoundDirectCast)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
354Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
226Return VisitDirectCast(DirectCast(node, BoundDirectCast))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
29Private Function VisitDirectCast(node As BoundDirectCast) As BoundExpression
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
349Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
942Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
414Dim conversion = DirectCast(nodeToCheck, BoundDirectCast)
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (3)
182Dim cast = DirectCast(operand, BoundDirectCast) 562Dim cast = DirectCast(left, BoundDirectCast) 570Dim cast = DirectCast(right, BoundDirectCast)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
255Private Function RewriteLambdaRelaxationConversion(node As BoundDirectCast) As BoundNode 1286Public Overrides Function VisitDirectCast(node As BoundDirectCast) As BoundNode
Lowering\SyntheticBoundNodeFactory.vb (1)
634Public Function [DirectCast](expression As BoundExpression, type As TypeSymbol) As BoundDirectCast