45 instantiations of BoundReturnStatement
Microsoft.CodeAnalysis.VisualBasic (37)
Analysis\InitializerRewriter.vb (1)
230boundStatements.Add(New BoundReturnStatement(submissionResult.Syntax, submissionResult, method.FunctionLocal, method.ExitLabel))
Binding\Binder_Delegates.vb (2)
1230boundStatement = New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing) 1269Dim returnstmt As BoundStatement = New BoundReturnStatement(syntaxNode,
Binding\Binder_Lambda.vb (3)
461Dim boundReturn = New BoundReturnStatement(expression.Syntax, 523Dim returnStmt = New BoundReturnStatement(endSyntax, boundLocal, Nothing, Nothing) 537Dim returnStmt = New BoundReturnStatement(endSyntax, Nothing, Nothing, Nothing)
Binding\Binder_Statements.vb (8)
408statements.Add(New BoundReturnStatement(methodBlock.EndBlockStatement, 412statements.Add(New BoundReturnStatement(methodBlock.EndBlockStatement, Nothing, Nothing, Nothing)) 4983Return New BoundReturnStatement(originalSyntax, Nothing, Nothing, returnLabel, hasErrors:=True) 4996Return New BoundReturnStatement(originalSyntax, arg, Nothing, returnLabel, hasErrors:=True) 4999Return New BoundReturnStatement(originalSyntax, Nothing, Nothing, returnLabel) 5046Return New BoundReturnStatement(originalSyntax, arg, GetLocalForFunctionValue(), returnLabel) 5052Return New BoundReturnStatement(originalSyntax, Nothing, Nothing, returnLabel, hasErrors:=False) 5055Return New BoundReturnStatement(originalSyntax, Nothing, Nothing, returnLabel, hasErrors:=True)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (5)
46statements.Add(New BoundReturnStatement(syntax, Nothing, Nothing, Nothing).MakeCompilerGenerated()) 80New BoundReturnStatement(syntax, boundCallToEquals, Nothing, Nothing).MakeCompilerGenerated())) 179New BoundReturnStatement(syntax, expression, Nothing, Nothing).MakeCompilerGenerated())) 226New BoundReturnStatement(syntax, finalEqualityCheck, Nothing, Nothing).MakeCompilerGenerated())) 386New BoundReturnStatement(syntax, [call], Nothing, Nothing).MakeCompilerGenerated()))
Binding\SyntheticBoundTrees\SynthesizedConstructorSymbol.vb (1)
17Dim returnStmt = New BoundReturnStatement(Me.Syntax, Nothing, Nothing, Nothing)
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
83statements.Add(New BoundReturnStatement(syntax, returnValue, local, exitLabel).MakeCompilerGenerated()) 363statements.Add((New BoundReturnStatement(syntax, returnLocal, Nothing, Nothing)).MakeCompilerGenerated())
Generated\BoundNodes.xml.Generated.vb (1)
2804Dim result = New BoundReturnStatement(Me.Syntax, expressionOpt, functionLocalOpt, exitLabelOpt, Me.HasErrors)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
471builder.Add(New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing))
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (2)
112boundStatement = New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing) 123Dim returnstmt As BoundStatement = New BoundReturnStatement(syntaxNode,
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
185Return New BoundReturnStatement(originalNode.Syntax,
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (2)
119DirectCast(New BoundReturnStatement(syntax, boundCall, Nothing, Nothing), BoundStatement), 123New BoundReturnStatement(syntax, Nothing, Nothing, Nothing))))
Lowering\SyntheticBoundNodeFactory.vb (1)
362Dim boundNode = New BoundReturnStatement(_syntax, expression, Nothing, Nothing)
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
298Dim returnStatement = New BoundReturnStatement( 375Dim returnStatement = New BoundReturnStatement(
Symbols\Source\SynthesizedEventAccessorSymbol.vb (3)
228Dim returnStatement = New BoundReturnStatement(syntax, processHandlerCall, functionLocalOpt:=Nothing, exitLabelOpt:=Nothing) 240Dim returnStatement = New BoundReturnStatement(syntax, expressionOpt:=Nothing, functionLocalOpt:=Nothing, exitLabelOpt:=Nothing) 290Dim [return] As BoundStatement = New BoundReturnStatement(syntax,
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
82Return New BoundBlock(syntaxNode, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(statement, New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing)))
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
52ImmutableArray.Create(Of BoundStatement)(New BoundReturnStatement(node, Nothing, Nothing, Nothing)))
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (8)
CompilationContext.vb (6)
258Return New BoundReturnStatement(syntax, expression, Nothing, Nothing).MakeCompilerGenerated() 445Return New BoundReturnStatement(syntax, expression, Nothing, Nothing).MakeCompilerGenerated() 459Return New BoundReturnStatement(syntax, expression, Nothing, Nothing).MakeCompilerGenerated() 472Return New BoundReturnStatement(syntax, expression, Nothing, Nothing).MakeCompilerGenerated() 486Return New BoundReturnStatement(syntax, expression, Nothing, Nothing).MakeCompilerGenerated() 523Return New BoundReturnStatement(syntax, expression, Nothing, Nothing).MakeCompilerGenerated()
Symbols\EEConstructorSymbol.vb (1)
24New BoundReturnStatement(Me.Syntax, Nothing, Nothing, Nothing)))
Symbols\EEMethodSymbol.vb (1)
474statementsBuilder.Add(New BoundReturnStatement(syntax, Nothing, Nothing, Nothing))
35 references to BoundReturnStatement
Microsoft.CodeAnalysis.VisualBasic (34)
Analysis\FlowAnalysis\AbstractFlowPass.vb (2)
459Return If(gotoOnly, Nothing, DirectCast(branch, BoundReturnStatement).ExitLabelOpt) 1499Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode
Analysis\FlowAnalysis\ControlFlowPass.vb (1)
97Dim returnStmt = TryCast(statement, BoundReturnStatement)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1981Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode
Binding\Binder_Lambda.vb (2)
364Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode 1053Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode
BoundTree\BoundTreeVisitor.vb (1)
58Return VisitReturnStatement(CType(node, BoundReturnStatement), arg)
CodeGen\EmitStatement.vb (2)
43EmitReturnStatement(DirectCast(statement, BoundReturnStatement)) 899Private Sub EmitReturnStatement(boundReturnStatement As BoundReturnStatement)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (1)
1148Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode
Generated\BoundNodes.xml.Generated.vb (7)
2802Public Function Update(expressionOpt As BoundExpression, functionLocalOpt As LocalSymbol, exitLabelOpt As LabelSymbol) As BoundReturnStatement 9411Return VisitReturnStatement(CType(node, BoundReturnStatement), arg) 9869Public Overridable Function VisitReturnStatement(node As BoundReturnStatement, arg As A) As R 10572Public Overridable Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode 11326Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode 12323Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode 13522Public Overrides Function VisitReturnStatement(node As BoundReturnStatement, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Statements.vb (2)
22Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode 23Dim rewritten = DirectCast(MyBase.VisitReturnStatement(node), BoundReturnStatement)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (2)
212DirectCast(block.Statements(1), BoundReturnStatement).ExpressionOpt Is Nothing) OrElse 221If (DirectCast(stmt, BoundReturnStatement)).ExpressionOpt IsNot Nothing Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
141DirectCast(block.Statements(1), BoundReturnStatement).ExpressionOpt Is Nothing) OrElse 157Dim expression As BoundExpression = (DirectCast(stmt, BoundReturnStatement)).ExpressionOpt
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
338Public Overrides Function InstrumentReturnStatement(original As BoundReturnStatement, rewritten As BoundStatement) As BoundStatement
Lowering\Instrumentation\CompoundInstrumenter.vb (1)
63Public Overrides Function InstrumentReturnStatement(original As BoundReturnStatement, rewritten As BoundStatement) As BoundStatement
Lowering\Instrumentation\DebugInfoInjector.vb (1)
68Public Overrides Function InstrumentReturnStatement(original As BoundReturnStatement, rewritten As BoundStatement) As BoundStatement
Lowering\Instrumentation\Instrumenter.vb (1)
71Public Overridable Function InstrumentReturnStatement(original As BoundReturnStatement, rewritten As BoundStatement) As BoundStatement
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
180Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode
Lowering\LocalRewriter\LocalRewriter_Return.vb (3)
15Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode 37Private Function RewriteReturnStatement(node As BoundReturnStatement) As BoundStatement 38node = DirectCast(MyBase.VisitReturnStatement(node), BoundReturnStatement)
Lowering\SyntheticBoundNodeFactory.vb (1)
349Public Function [Return](Optional expression As BoundExpression = Nothing) As BoundReturnStatement
Operations\VisualBasicOperationFactory.vb (2)
186Return CreateBoundReturnStatementOperation(DirectCast(boundNode, BoundReturnStatement)) 1321Private Function CreateBoundReturnStatementOperation(boundReturnStatement As BoundReturnStatement) As IReturnOperation
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EEMethodSymbol.vb (1)
600Return DirectCast(body, BoundReturnStatement).ExpressionOpt.Type