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