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