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