22 instantiations of BoundTryCast
Microsoft.CodeAnalysis.VisualBasic (22)
Binding\Binder_Conversions.vb (14)
189
Return New
BoundTryCast
(node, argument, conversionKind:=Nothing, type:=targetType, hasErrors:=True)
212
argument = New
BoundTryCast
(node, argument, ConversionKind.Identity, targetType)
221
Return New
BoundTryCast
(node, argument, conv, targetType, hasErrors:=True)
227
Return New
BoundTryCast
(node, argument, conv, targetType, hasErrors:=True)
237
Return New
BoundTryCast
(node, argument, conv, targetType, hasErrors:=True)
242
Return New
BoundTryCast
(node, argument, conv, targetType, hasErrors:=True)
247
Return New
BoundTryCast
(node, argument, conv, targetType, hasErrors:=True)
255
Return New
BoundTryCast
(node, argument, conv, targetType, hasErrors:=True)
260
Return New
BoundTryCast
(node, argument, conv, constantResult, targetType)
1259
argument = New
BoundTryCast
(tree, argument, convKind, targetType, hasErrors:=hasErrors)
1386
Return New
BoundTryCast
(tree, errorRecovery, convKind, targetType, hasErrors:=True)
1484
Return New
BoundTryCast
(tree, boundLambda, convKind, relaxationLambdaOpt, targetType)
1547
Return New
BoundTryCast
(tree, lambda, convKind, targetType, hasErrors:=True).MakeCompilerGenerated()
1598
Return New
BoundTryCast
(tree, lambda, convKind, targetType).MakeCompilerGenerated()
Binding\Binder_Expressions.vb (1)
1493
argument = New
BoundTryCast
(tree, argument, conv, destination)
Binding\Binder_Statements.vb (1)
3489
boundDisposeCast = New
BoundTryCast
(collectionSyntax, boundEnumeratorPlaceholder.MakeRValue(), conversionKind, idisposableType, Nothing)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (1)
69
Dim boundTryCast As BoundExpression = New
BoundTryCast
(syntax, boundObjReference, ConversionKind.NarrowingReference,
BoundTree\BoundTryCast.vb (3)
19
Me.
New
(syntax, operand, conversionKind, constantValueOpt:=Nothing, type:=type, hasErrors:=hasErrors)
30
Me.
New
(syntax, operand, conversionKind, constantValueOpt:=Nothing, relaxationLambdaOpt:=relaxationLambdaOpt, type:=type, hasErrors:=hasErrors)
34
Me.
New
(syntax, operand, conversionKind, constantValueOpt, relaxationLambdaOpt:=Nothing, type:=type, hasErrors:=hasErrors)
Generated\BoundNodes.xml.Generated.vb (1)
2422
Dim result = New
BoundTryCast
(Me.Syntax, operand, conversionKind, constantValueOpt, relaxationLambdaOpt, type, Me.HasErrors)
Lowering\SyntheticBoundNodeFactory.vb (1)
627
Return New
BoundTryCast
(Me.Syntax, expression, Conversions.ClassifyTryCastConversion(expression.Type, type, CompoundUseSiteInfo(Of AssemblySymbol).Discarded), type)
31 references to BoundTryCast
Microsoft.CodeAnalysis.VisualBasic (31)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
2337
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1654
value = DirectCast(value,
BoundTryCast
).Operand
Binding\Binder_Attributes.vb (1)
774
Dim conv = DirectCast(node,
BoundTryCast
)
Binding\Binder_Utils.vb (1)
1325
Dim conv = DirectCast(boundExpression,
BoundTryCast
)
Binding\MemberSemanticModel.vb (1)
2373
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
BoundTree\BoundExpressionExtensions.vb (1)
53
constValue = DirectCast(node,
BoundTryCast
).Operand.ConstantValueOpt
BoundTree\BoundTreeVisitor.vb (1)
44
Return VisitTryCast(CType(node,
BoundTryCast
), arg)
CodeGen\EmitConversion.vb (2)
459
Private Function ConversionHasSideEffects(conversion As
BoundTryCast
) As Boolean
464
Private Sub EmitTryCastExpression(conversion As
BoundTryCast
, used As Boolean)
CodeGen\EmitExpression.vb (2)
103
EmitTryCastExpression(DirectCast(expression,
BoundTryCast
), used)
1398
Dim conversion = DirectCast(expr,
BoundTryCast
)
Generated\BoundNodes.xml.Generated.vb (7)
2420
Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol) As
BoundTryCast
9395
Return VisitTryCast(CType(node,
BoundTryCast
), arg)
9837
Public Overridable Function VisitTryCast(node As
BoundTryCast
, arg As A) As R
10540
Public Overridable Function VisitTryCast(node As
BoundTryCast
) As BoundNode
11285
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
12276
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
13455
Public Overrides Function VisitTryCast(node As
BoundTryCast
, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
350
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
351
Dim rewritten = DirectCast(MyBase.VisitTryCast(node),
BoundTryCast
)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
335
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
245
Return VisitTryCast(DirectCast(node,
BoundTryCast
))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
38
Private Function VisitTryCast(node As
BoundTryCast
) As BoundExpression
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
338
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
907
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
418
Dim conversion = DirectCast(nodeToCheck,
BoundTryCast
)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
278
Private Function RewriteLambdaRelaxationConversion(node As
BoundTryCast
) As BoundNode
1398
Public Overrides Function VisitTryCast(node As
BoundTryCast
) As BoundNode
Lowering\SyntheticBoundNodeFactory.vb (1)
619
Public Function [TryCast](expression As BoundExpression, type As TypeSymbol) As
BoundTryCast
Operations\VisualBasicOperationFactory.vb (2)
104
Return CreateBoundTryCastOperation(DirectCast(boundNode,
BoundTryCast
))
693
Private Function CreateBoundTryCastOperation(boundTryCast As
BoundTryCast
) As IOperation