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