60 instantiations of BoundDirectCast
Microsoft.CodeAnalysis.VisualBasic (58)
Binding\Binder_Conversions.vb (12)
82
Return New
BoundDirectCast
(node, argument, conversionKind:=Nothing, type:=targetType, hasErrors:=True)
99
argument = New
BoundDirectCast
(node, argument, ConversionKind.Identity, targetType)
108
Return New
BoundDirectCast
(node, argument, conv, targetType, hasErrors:=True)
114
Return New
BoundDirectCast
(node, argument, conv, targetType, hasErrors:=True)
124
Return New
BoundDirectCast
(node, argument, conv, targetType, hasErrors:=True)
132
Return New
BoundDirectCast
(node, argument, conv, targetType, hasErrors:=True)
161
Return New
BoundDirectCast
(node, argument, conv, constantResult, targetType)
1257
argument = New
BoundDirectCast
(tree, argument, convKind, targetType, hasErrors:=hasErrors)
1384
Return New
BoundDirectCast
(tree, errorRecovery, convKind, targetType, hasErrors:=True)
1482
Return New
BoundDirectCast
(tree, boundLambda, convKind, relaxationLambdaOpt, targetType)
1545
Return New
BoundDirectCast
(tree, lambda, convKind, targetType, hasErrors:=True).MakeCompilerGenerated()
1596
Return New
BoundDirectCast
(tree, lambda, convKind, targetType).MakeCompilerGenerated()
Binding\Binder_Expressions.vb (1)
1491
argument = New
BoundDirectCast
(tree, argument, conv, destination)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (4)
146
New
BoundDirectCast
(syntax,
212
Dim valIsNotNothing = BuildIsCheck(New
BoundDirectCast
(syntax, boundValReference,
302
Return New
BoundDirectCast
(Syntax,
353
boundFieldAccessArray(index) = New
BoundDirectCast
(syntax,
BoundTree\BoundDirectCast.vb (3)
20
Me.
New
(syntax, operand, conversionKind, suppressVirtualCalls:=False, constantValueOpt:=Nothing, relaxationLambdaOpt:=Nothing, type:=type, hasErrors:=hasErrors)
31
Me.
New
(syntax, operand, conversionKind, suppressVirtualCalls:=False, constantValueOpt:=Nothing, relaxationLambdaOpt:=relaxationLambdaOpt, type:=type, hasErrors:=hasErrors)
35
Me.
New
(syntax, operand, conversionKind, suppressVirtualCalls:=False, constantValueOpt:=constantValueOpt, relaxationLambdaOpt:=Nothing, type:=type, hasErrors:=hasErrors)
Generated\BoundNodes.xml.Generated.vb (1)
2358
Dim result = New
BoundDirectCast
(Me.Syntax, operand, conversionKind, suppressVirtualCalls, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
440
New
BoundDirectCast
(syntaxNode, parameterExpr.MakeRValue(), ConversionKind.WideningReference, obj, Nothing),
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
611
result = New
BoundDirectCast
(node.Syntax, op, ConversionKind.WideningValue, node.Type, Nothing)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (9)
442
Return New
BoundDirectCast
(node.Syntax,
455
Return New
BoundDirectCast
(node.Syntax,
644
Return New
BoundDirectCast
(node.Syntax,
657
Return New
BoundDirectCast
(node.Syntax,
670
Return New
BoundDirectCast
(node.Syntax,
890
operand = New
BoundDirectCast
(operand.Syntax,
915
Return New
BoundDirectCast
(node.Syntax, node.Operand, node.ConversionKind, node.Type, Nothing)
965
operand = New
BoundDirectCast
(operand.Syntax,
1425
returnValue = New
BoundDirectCast
(node.Syntax, DirectCast(Visit(operand), BoundExpression), node.ConversionKind, typeTo, Nothing)
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
146
Dim result = New
BoundDirectCast
(syntaxNode,
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (7)
30
rewrittenReceiver = New
BoundDirectCast
(node, rewrittenReceiver, convKind, objectType)
135
argument = New
BoundDirectCast
(node, argument, convKind, objectType)
176
rewrittenValue = New
BoundDirectCast
(node, rewrittenValue, convKind, objectType)
223
argument = New
BoundDirectCast
(node, argument, convKind, objectType)
239
rewrittenValue = New
BoundDirectCast
(node, rewrittenValue, convKind, objectType)
289
argument = New
BoundDirectCast
(node, argument, convKind, objectType)
395
value = New
BoundDirectCast
(syntax, value, conversionKind, targetType)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (1)
200
Dim flagAsObject = New
BoundDirectCast
(syntax,
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (2)
46
result = New
BoundDirectCast
(node.Syntax, result, conv, node.Type, Nothing)
92
rewrittenObjectCreation = New
BoundDirectCast
(node.Syntax, factory.Call(Nothing, createInstance, callGetTypeFromCLSID), conversion, node.Type)
Lowering\LocalRewriter\LocalRewriter_OmittedArgument.vb (1)
28
Return New
BoundDirectCast
(node.Syntax, fieldAccess, conversion, node.Type)
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (3)
54
arrayValueAccess = New
BoundDirectCast
(node.Syntax, arrayValueAccess,
58
valueBeingAssigned = New
BoundDirectCast
(node.Syntax, valueBeingAssigned,
70
valueBeingAssigned = New
BoundDirectCast
(node.Syntax, valueBeingAssigned,
Lowering\SyntheticBoundNodeFactory.vb (2)
358
expression = New
BoundDirectCast
(Me.Syntax, expression, conversion, Me.CurrentMethod.ReturnType)
637
Return New
BoundDirectCast
(Me.Syntax,
Symbols\Source\SynthesizedEventAccessorSymbol.vb (6)
338
delegateUpdate = New
BoundDirectCast
(syntax,
344
New
BoundDirectCast
(syntax, boundBackingField.MakeRValue(), ConversionKind.WideningReference, updateMethod.Parameters(0).Type),
345
New
BoundDirectCast
(syntax, boundParameter, ConversionKind.WideningReference, updateMethod.Parameters(1).Type)),
415
delegateUpdate = New
BoundDirectCast
(syntax,
421
New
BoundDirectCast
(syntax, boundTmps(1).MakeRValue(), ConversionKind.WideningReference, updateMethod.Parameters(0).Type),
422
New
BoundDirectCast
(syntax, boundParameter, ConversionKind.WideningReference, updateMethod.Parameters(1).Type)),
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (3)
80
New
BoundDirectCast
(syntax, meReference, ConversionKind.Reference, type:=objectType),
92
New
BoundDirectCast
(syntax,
112
New
BoundDirectCast
(syntax,
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
Rewriters\CapturedVariableRewriter.vb (1)
100
Dim result = New
BoundDirectCast
(
Symbols\PlaceholderLocalSymbol.vb (1)
142
Return New
BoundDirectCast
(
40 references to BoundDirectCast
Microsoft.CodeAnalysis.VisualBasic (40)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
2332
Public Overrides Function VisitDirectCast(node As
BoundDirectCast
) As BoundNode
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1651
value = DirectCast(value,
BoundDirectCast
).Operand
Binding\Binder_Attributes.vb (1)
760
Dim conv = DirectCast(node,
BoundDirectCast
)
Binding\Binder_Operators.vb (1)
916
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)
100
EmitDirectCastExpression(DirectCast(expression,
BoundDirectCast
), used)
720
ElseIf receiver.Kind = BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver,
BoundDirectCast
)) Then
721
EmitExpression(DirectCast(receiver,
BoundDirectCast
).Operand, True)
751
If receiver.Kind = BoundKind.DirectCast AndAlso IsUnboxingDirectCast(DirectCast(receiver,
BoundDirectCast
)) Then
895
Dim convOperand = DirectCast(receiver,
BoundDirectCast
).Operand
1391
Dim conversion = DirectCast(expr,
BoundDirectCast
)
Generated\BoundNodes.xml.Generated.vb (7)
2356
Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, suppressVirtualCalls As Boolean, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol) As
BoundDirectCast
9393
Return VisitDirectCast(CType(node,
BoundDirectCast
), arg)
9833
Public Overridable Function VisitDirectCast(node As
BoundDirectCast
, arg As A) As R
10536
Public Overridable Function VisitDirectCast(node As
BoundDirectCast
) As BoundNode
11279
Public Overrides Function VisitDirectCast(node As
BoundDirectCast
) As BoundNode
12269
Public Overrides Function VisitDirectCast(node As
BoundDirectCast
) As BoundNode
13444
Public Overrides Function VisitDirectCast(node As
BoundDirectCast
, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
329
Public Overrides Function VisitDirectCast(node As
BoundDirectCast
) As BoundNode
330
Dim rewritten = DirectCast(MyBase.VisitDirectCast(node),
BoundDirectCast
)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
351
Public Overrides Function VisitDirectCast(node As
BoundDirectCast
) As BoundNode
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
221
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)
922
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)
187
Dim cast = DirectCast(operand,
BoundDirectCast
)
567
Dim cast = DirectCast(left,
BoundDirectCast
)
575
Dim cast = DirectCast(right,
BoundDirectCast
)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
255
Private Function RewriteLambdaRelaxationConversion(node As
BoundDirectCast
) As BoundNode
1372
Public Overrides Function VisitDirectCast(node As
BoundDirectCast
) As BoundNode
Lowering\SyntheticBoundNodeFactory.vb (1)
630
Public Function [DirectCast](expression As BoundExpression, type As TypeSymbol) As
BoundDirectCast
Operations\VisualBasicOperationFactory.vb (2)
106
Return CreateBoundDirectCastOperation(DirectCast(boundNode,
BoundDirectCast
))
697
Private Function CreateBoundDirectCastOperation(boundDirectCast As
BoundDirectCast
) As IOperation