64 instantiations of BoundBlock
Microsoft.CodeAnalysis.VisualBasic (61)
Analysis\InitializerRewriter.vb (2)
171Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.Locals, boundStatements.ToImmutableAndFree(), block.HasErrors) 185Return New BoundBlock(block.Syntax, block.StatementListSyntax, block.Locals, boundStatements.ToImmutableAndFree(), block.HasErrors)
Binding\Binder_Delegates.vb (1)
1277Dim lambdaBody = New BoundBlock(syntaxNode,
Binding\Binder_Initializers.vb (1)
62Dim block As New BoundBlock(Me.BoundInitializers(0).Syntax,
Binding\Binder_Lambda.vb (1)
468block = New BoundBlock(lambdaSyntax, Nothing, ImmutableArray(Of LocalSymbol).Empty,
Binding\Binder_Statements.vb (3)
415Return New BoundBlock(methodBlock, If(methodBlock IsNot Nothing, methodBlock.Statements, Nothing), locals, statements.ToImmutableAndFree()) 2076Return New BoundBlock(syntax, stmtList, ImmutableArray(Of LocalSymbol).Empty, boundStatements.AsImmutableOrNull()) 2079Return New BoundBlock(syntax, stmtList, locals.ToImmutableAndFree, boundStatements.AsImmutableOrNull())
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (5)
49Return New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, statements.ToImmutableAndFree()).MakeCompilerGenerated() 78Return New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, 176Return New BoundBlock(syntax, Nothing, 223Return New BoundBlock(syntax, Nothing, 383Return New BoundBlock(syntax, Nothing,
Binding\SyntheticBoundTrees\SynthesizedConstructorSymbol.vb (1)
19Return New BoundBlock(Me.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundStatement)(returnStmt))
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
27Return (New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray(Of BoundStatement).Empty, hasErrors:=True)).MakeCompilerGenerated() 365Return (New BoundBlock(syntax, Nothing, locals, statements.ToImmutableAndFree())).MakeCompilerGenerated()
Compilation\MethodCompiler.vb (1)
1528body = New BoundBlock(body.Syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty, boundStatements.ToImmutableAndFree(), body.HasErrors).MakeCompilerGenerated()
Generated\BoundNodes.xml.Generated.vb (1)
4372Dim result = New BoundBlock(Me.Syntax, statementListSyntax, locals, statements, Me.HasErrors)
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
473Return New BoundBlock(syntaxNode, 723Return New BoundBlock(node.Syntax,
Lowering\LocalRewriter\LocalRewriter.vb (2)
204Return New BoundBlock(node.Syntax, Nothing, locals.AsImmutable, sideEffects.AsImmutableOrNull) 445Return New BoundBlock(
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
170Return New BoundBlock(
Lowering\LocalRewriter\LocalRewriter_Block.vb (1)
65Return New BoundBlock(node.Syntax, node.StatementListSyntax, If(synthesizedLocal Is Nothing, node.Locals, node.Locals.Add(synthesizedLocal)), builder.ToImmutableAndFree())
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (5)
143Return New BoundBlock(node.Syntax, 458Dim rewrittenBodyBlock As BoundBlock = New BoundBlock(statementSyntax, 611Dim rewrittenBodyBlock As BoundBlock = New BoundBlock(syntaxNode, Nothing, If(node.DeclaredOrInferredLocalOpt IsNot Nothing, ImmutableArray.Create(Of LocalSymbol)(node.DeclaredOrInferredLocalOpt), ImmutableArray(Of LocalSymbol).Empty), rewrittenBodyStatements) 657New BoundBlock(syntaxNode, 662New BoundBlock(syntaxNode,
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (2)
301Return New BoundBlock( 551Return New BoundBlock(
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
131Dim lambdaBody = New BoundBlock(syntaxNode,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (3)
314Dim tryBody As BoundBlock = New BoundBlock(syntax, 325Dim finallyBody As BoundBlock = New BoundBlock(syntax, 334Return New BoundBlock(syntax,
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
199Dim lambdaBody = New BoundBlock(originalNode.Syntax,
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
88result = New BoundBlock(syntax,
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
151Return New BoundBlock(syntaxNode, Nothing, tempLocals, statementBuilder.ToImmutableAndFree()).MakeCompilerGenerated()
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (3)
128Dim tryBody As BoundBlock = New BoundBlock(syntaxNode, 135Dim finallyBody As BoundBlock = New BoundBlock(syntaxNode, 159Return New BoundBlock(syntaxNode,
Lowering\LocalRewriter\LocalRewriter_Using.vb (3)
153currentBody = New BoundBlock(node.Syntax, 250Dim finallyBlock = New BoundBlock(resourceSyntax, 258newBody = New BoundBlock(resourceSyntax,
Lowering\LocalRewriter\LocalRewriter_With.vb (1)
135Dim newBlock As New BoundBlock(syntax, Nothing, locals, initStatements.ToImmutableAndFree())
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (1)
120New BoundBlock(syntax, Nothing, ImmutableArray(Of LocalSymbol).Empty,
Lowering\Rewriter.vb (1)
119Return New BoundBlock(body.Syntax, body.StatementListSyntax, body.Locals, body.Statements, hasErrors:=True)
Lowering\SyntheticBoundNodeFactory.vb (1)
316Dim boundNode = New BoundBlock(_syntax, Nothing, locals, statements)
Symbols\Source\SourceMethodSymbol.vb (1)
1199Return New BoundBlock(methodBlock, methodBlock.Statements, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(boundStatement))
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
304Return New BoundBlock( 384Return New BoundBlock(
Symbols\Source\SynthesizedEventAccessorSymbol.vb (6)
124New BoundBlock( 229Return New BoundBlock( 241Return New BoundBlock( 296Return New BoundBlock(syntax, 361Return New BoundBlock(syntax, 470Return New BoundBlock(syntax,
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
137Return New BoundBlock(
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\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
127Return New BoundBlock(accessorBlock, Nothing, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundStatement)(boundStatement))
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
48Return New BoundBlock(
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (3)
Rewriters\LocalDeclarationRewriter.vb (1)
27block = New BoundBlock(syntax, block.StatementListSyntax, block.Locals, builder.ToImmutableAndFree())
Symbols\EEConstructorSymbol.vb (1)
18Return New BoundBlock(
Symbols\EEMethodSymbol.vb (1)
491Dim newBody = New BoundBlock(syntax, Nothing, originalLocals, statementsBuilder.ToImmutableAndFree())
255 references to BoundBlock
Microsoft.CodeAnalysis.VisualBasic (247)
Analysis\Analyzer.vb (1)
23body As BoundBlock,
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
1070Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1671Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode
Analysis\FlowAnalysis\FlowAnalysisPass.vb (2)
21Public Shared Sub Analyze(method As MethodSymbol, block As BoundBlock, diagnostics As DiagnosticBag) 27Private Shared Sub Analyze(compilation As VisualBasicCompilation, method As MethodSymbol, block As BoundBlock, diagnostics As DiagnosticBag)
Analysis\ForLoopVerification.vb (1)
25Public Shared Sub VerifyForLoops(block As BoundBlock, diagnostics As DiagnosticBag)
Analysis\InitializerRewriter.vb (5)
35block As BoundBlock) As BoundBlock 177block As BoundBlock) As BoundBlock 250Friend Function HasExplicitMeConstructorCall(block As BoundBlock, container As TypeSymbol, <Out()> ByRef isMyBaseConstructorCall As Boolean) As Boolean
Binding\Binder_Lambda.vb (7)
223Dim block As BoundBlock = BindLambdaBody(lambdaSymbol, diagnostics, lambdaBinder) 339lambdaBlock As BoundBlock, 411) As BoundBlock 430Dim block As BoundBlock 590block As BoundBlock, 904Dim block As BoundBlock = BindLambdaBody(symbol, diagnostics, lambdaBinder:=Nothing) 1032Public Shared Sub CollectReturnExpressions(lambdaBlock As BoundBlock,
Binding\Binder_SelectCase.vb (1)
134Dim body As BoundBlock = bodyBinder.BindBlock(node, statementsSyntax, diagnostics).MakeCompilerGenerated()
Binding\Binder_Statements.vb (14)
291Private Function BindMethodBlock(methodBlock As MethodBlockBaseSyntax, diagnostics As BindingDiagnosticBag) As BoundBlock 447block As BoundBlock, 2042Friend Function BindBlock(syntax As SyntaxNode, stmtList As SyntaxList(Of StatementSyntax), diagnostics As BindingDiagnosticBag) As BoundBlock 2050Friend Function BindBlock(syntax As SyntaxNode, stmtList As SyntaxList(Of StatementSyntax), diagnostics As BindingDiagnosticBag, stmtListBinder As Binder) As BoundBlock 2732Dim consequence As BoundBlock 2804Dim loopBody As BoundBlock = loopBodyBinder.BindBlock(node, node.Statements, diagnostics).MakeCompilerGenerated() 2830Dim loopBody As BoundBlock = loopBodyBinder.BindBlock(node, node.Statements, diagnostics).MakeCompilerGenerated() 2879Dim loopBody As BoundBlock = Nothing 3012<Out()> ByRef loopBody As BoundBlock, 3216Dim loopBody As BoundBlock = Nothing 3498Dim loopBody As BoundBlock = Nothing 4503Dim usingBody As BoundBlock = BindBlock(node, node.Statements, diagnostics).MakeCompilerGenerated() 4715Dim tryBlock As BoundBlock = BindBlock(node, node.Statements, diagnostics).MakeCompilerGenerated() 4718Dim finallyBlockOpt As BoundBlock
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (5)
19Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 56Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 87Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 186Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 328Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Binding\SyntheticBoundTrees\SynthesizedConstructorSymbol.vb (1)
15Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (1)
14Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (2)
53Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 94Dim body As BoundBlock = F.Block(
BoundTree\BoundTreeVisitor.vb (1)
70Return VisitBlock(CType(node, BoundBlock), arg)
CodeGen\EmitStatement.vb (2)
21EmitBlock(DirectCast(statement, BoundBlock)) 1222Private Sub EmitBlock(scope As BoundBlock)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (7)
274Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode 1052Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 1077Dim tryBlock = DirectCast(Me.Visit(node.TryBlock), BoundBlock) 1084Dim finallyBlock = DirectCast(Me.Visit(node.FinallyBlockOpt), BoundBlock) 1114Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock)
Compilation\MethodCompiler.vb (5)
829Dim body As BoundBlock 1431block As BoundBlock, 1454Dim body As BoundBlock 1756ByRef methodBodyBinder As Binder) As BoundBlock 1829Public Shared Sub CollectCallees(compilationState As TypeCompilationState, method As MethodSymbol, block As BoundBlock)
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
62Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Generated\BoundNodes.xml.Generated.vb (61)
4370Public Function Update(statementListSyntax As SyntaxList(Of StatementSyntax), locals As ImmutableArray(Of LocalSymbol), statements As ImmutableArray(Of BoundStatement)) As BoundBlock 5015Public Sub New(syntax As SyntaxNode, caseStatement As BoundCaseStatement, body As BoundBlock, Optional hasErrors As Boolean = False) 5033Private ReadOnly _Body As BoundBlock 5034Public ReadOnly Property Body As BoundBlock 5045Public Function Update(caseStatement As BoundCaseStatement, body As BoundBlock) As BoundCaseBlock 5748Public Sub New(syntax As SyntaxNode, tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol, Optional hasErrors As Boolean = False) 5761Private ReadOnly _TryBlock As BoundBlock 5762Public ReadOnly Property TryBlock As BoundBlock 5775Private ReadOnly _FinallyBlockOpt As BoundBlock 5776Public ReadOnly Property FinallyBlockOpt As BoundBlock 5794Public Function Update(tryBlock As BoundBlock, catchBlocks As ImmutableArray(Of BoundCatchBlock), finallyBlockOpt As BoundBlock, exitLabelOpt As LabelSymbol) As BoundTryStatement 5807Public Sub New(syntax As SyntaxNode, localOpt As LocalSymbol, exceptionSourceOpt As BoundExpression, errorLineNumberOpt As BoundExpression, exceptionFilterOpt As BoundExpression, body As BoundBlock, isSynthesizedAsyncCatchAll As Boolean, Optional hasErrors As Boolean = False) 5849Private ReadOnly _Body As BoundBlock 5850Public ReadOnly Property Body As BoundBlock 5868Public Function Update(localOpt As LocalSymbol, exceptionSourceOpt As BoundExpression, errorLineNumberOpt As BoundExpression, exceptionFilterOpt As BoundExpression, body As BoundBlock, isSynthesizedAsyncCatchAll As Boolean) As BoundCatchBlock 6708Public Sub New(syntax As SyntaxNode, originalExpression As BoundExpression, body As BoundBlock, binder As WithBlockBinder, Optional hasErrors As Boolean = False) 6728Private ReadOnly _Body As BoundBlock 6729Public ReadOnly Property Body As BoundBlock 6747Public Function Update(originalExpression As BoundExpression, body As BoundBlock, binder As WithBlockBinder) As BoundWithStatement 6849Public Sub New(syntax As SyntaxNode, lambdaSymbol As LambdaSymbol, body As BoundBlock, diagnostics As ImmutableBindingDiagnostic(Of AssemblySymbol), lambdaBinderOpt As LambdaBodyBinder, delegateRelaxation As ConversionKind, methodConversionKind As MethodConversionKind, Optional hasErrors As Boolean = False) 6876Private ReadOnly _Body As BoundBlock 6877Public ReadOnly Property Body As BoundBlock 6916Public Function Update(lambdaSymbol As LambdaSymbol, body As BoundBlock, diagnostics As ImmutableBindingDiagnostic(Of AssemblySymbol), lambdaBinderOpt As LambdaBodyBinder, delegateRelaxation As ConversionKind, methodConversionKind As MethodConversionKind) As BoundLambda 7656Public Sub New(syntax As SyntaxNode, resourceList As ImmutableArray(Of BoundLocalDeclarationBase), resourceExpressionOpt As BoundExpression, body As BoundBlock, usingInfo As UsingInfo, locals As ImmutableArray(Of LocalSymbol), Optional hasErrors As Boolean = False) 7685Private ReadOnly _Body As BoundBlock 7686Public ReadOnly Property Body As BoundBlock 7711Public Function Update(resourceList As ImmutableArray(Of BoundLocalDeclarationBase), resourceExpressionOpt As BoundExpression, body As BoundBlock, usingInfo As UsingInfo, locals As ImmutableArray(Of LocalSymbol)) As BoundUsingStatement 7724Public Sub New(syntax As SyntaxNode, lockExpression As BoundExpression, body As BoundBlock, Optional hasErrors As Boolean = False) 7742Private ReadOnly _Body As BoundBlock 7743Public ReadOnly Property Body As BoundBlock 7754Public Function Update(lockExpression As BoundExpression, body As BoundBlock) As BoundSyncLockStatement 8410Public Sub New(syntax As SyntaxNode, containsOnError As Boolean, containsResume As Boolean, resumeWithoutLabelOpt As StatementSyntax, trackLineNumber As Boolean, body As BoundBlock, Optional hasErrors As Boolean = False) 8456Private ReadOnly _Body As BoundBlock 8457Public ReadOnly Property Body As BoundBlock 8468Public Function Update(containsOnError As Boolean, containsResume As Boolean, resumeWithoutLabelOpt As StatementSyntax, trackLineNumber As Boolean, body As BoundBlock) As BoundUnstructuredExceptionHandlingStatement 9467Return VisitBlock(CType(node, BoundBlock), arg) 9981Public Overridable Function VisitBlock(node As BoundBlock, arg As A) As R 10684Public Overridable Function VisitBlock(node As BoundBlock) As BoundNode 11479Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode 12506Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode 12588Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 12669Dim tryBlock As BoundBlock = DirectCast(Me.Visit(node.TryBlock), BoundBlock) 12671Dim finallyBlockOpt As BoundBlock = DirectCast(Me.Visit(node.FinallyBlockOpt), BoundBlock) 12679Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 12780Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 12791Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 12891Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 12897Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 12992Dim body As BoundBlock = DirectCast(Me.Visit(node.Body), BoundBlock) 13778Public Overrides Function VisitBlock(node As BoundBlock, arg As Object) As TreeDumperNode
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
112Private Function GenerateAwaitForIncompleteTask(awaiterTemp As LocalSymbol) As BoundBlock
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (2)
403addValueAsExpression As Boolean) As BoundBlock 409ParamArray additional() As BoundStatement) As BoundBlock
Lowering\AsyncRewriter\AsyncRewriter.vb (3)
72Friend Overloads Shared Function Rewrite(body As BoundBlock, 79<Out> ByRef stateMachineType As AsyncStateMachine) As BoundBlock 288Return LocalRewriter.Rewrite(DirectCast(body, BoundBlock),
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (2)
208Dim block As BoundBlock = node.Body 231Dim innerBlock = DirectCast(stmt, BoundBlock)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (2)
130Private Function TranslateLambdaBody(block As BoundBlock) As BoundExpression 167Dim innerBlock = DirectCast(stmt, BoundBlock)
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (2)
234Public Overrides Function CreateBlockPrologue(trueOriginal As BoundBlock, original As BoundBlock, ByRef synthesizedLocal As LocalSymbol) As BoundStatement
Lowering\Instrumentation\CompoundInstrumenter.vb (3)
87Public Overrides Function CreateBlockPrologue(trueOriginal As BoundBlock, original As BoundBlock, ByRef synthesizedLocal As LocalSymbol) As BoundStatement 211Public Overrides Function InstrumentCaseElseBlock(original As BoundCaseBlock, rewritten As BoundBlock) As BoundStatement
Lowering\Instrumentation\DebugInfoInjector.vb (3)
92Public Overrides Function CreateBlockPrologue(trueOriginal As BoundBlock, original As BoundBlock, ByRef synthesizedLocal As LocalSymbol) As BoundStatement 309Public Overrides Function InstrumentCaseElseBlock(original As BoundCaseBlock, rewritten As BoundBlock) As BoundStatement
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (1)
85Public Overloads Shared Function CreateBlockPrologue(node As BoundBlock, previousPrologue As BoundStatement) As BoundStatement
Lowering\Instrumentation\Instrumenter.vb (3)
103Public Overridable Function CreateBlockPrologue(trueOriginal As BoundBlock, original As BoundBlock, ByRef synthesizedLocal As LocalSymbol) As BoundStatement 325Public Overridable Function InstrumentCaseElseBlock(original As BoundCaseBlock, rewritten As BoundBlock) As BoundStatement
Lowering\IteratorRewriter\IteratorRewriter.vb (2)
47Friend Overloads Shared Function Rewrite(body As BoundBlock, 54<Out> ByRef stateMachineType As IteratorStateMachine) As BoundBlock
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
138Public Shared Function AnalyzeMethodBody(node As BoundBlock, method As MethodSymbol, symbolsCapturedWithoutCtor As ISet(Of Symbol), diagnostics As BindingDiagnosticBag) As Analysis 283Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode
Lowering\LambdaRewriter\LambdaRewriter.vb (11)
152Public Shared Function Rewrite(node As BoundBlock, 162rewrittenNodes As HashSet(Of BoundNode)) As BoundBlock 185Dim body = DirectCast(rewriter.Visit(node), BoundBlock) 405Private Function MakeFrameCtor(frame As LambdaFrame, diagnostics As BindingDiagnosticBag) As BoundBlock 730Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode 842Dim rewrittenBody = DirectCast(Me.Visit(node.Body), BoundBlock) 878<Out> ByRef stateMachineType As StateMachineTypeSymbol) As BoundBlock 883Dim node As BoundBlock = lambda.Body 885Dim loweredBody As BoundBlock = Nothing 894BoundBlock) 1025Dim newBody = DirectCast(Visit(node.Body), BoundBlock)
Lowering\LocalRewriter\LocalRewriter.vb (9)
189Private Shared Function InsertXmlLiteralsPreamble(node As BoundNode, fixups As ImmutableArray(Of XmlLiteralFixupData.LocalWithInitialization)) As BoundBlock 208node As BoundBlock, 219) As BoundBlock 234recursionDepth:=0), BoundBlock) 396Dim block = TryCast(statement, BoundBlock) 414Private Shared Function AppendToBlock(block As BoundBlock, additionOpt As BoundStatement) As BoundBlock 440Private Shared Function PrependWithPrologue(block As BoundBlock, prologueOpt As BoundStatement) As BoundBlock
Lowering\LocalRewriter\LocalRewriter_Block.vb (2)
17Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode 19Dim original As BoundBlock = node
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
458Dim rewrittenBodyBlock As BoundBlock = New BoundBlock(statementSyntax, 611Dim rewrittenBodyBlock As BoundBlock = New BoundBlock(syntaxNode, Nothing, If(node.DeclaredOrInferredLocalOpt IsNot Nothing, ImmutableArray.Create(Of LocalSymbol)(node.DeclaredOrInferredLocalOpt), ImmutableArray(Of LocalSymbol).Empty), rewrittenBodyStatements)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (2)
50rewrittenStep As BoundExpression) As BoundBlock 388rewrittenStep As BoundExpression) As BoundBlock
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (2)
314Dim tryBody As BoundBlock = New BoundBlock(syntax, 325Dim finallyBody As BoundBlock = New BoundBlock(syntax,
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
274Dim rewrittenBody = DirectCast(VisitBlock(curCaseBlock.Body), BoundBlock)
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (5)
120DirectCast(Visit(node.Body), BoundBlock)) 124tryStatements = ImmutableArray.Create(Of BoundStatement)(DirectCast(Visit(node.Body), BoundBlock)) 128Dim tryBody As BoundBlock = New BoundBlock(syntaxNode, 135Dim finallyBody As BoundBlock = New BoundBlock(syntaxNode, 142finallyBody = DirectCast(Concat(finallyBody, _instrumenterOpt.CreateSyncLockExitDueToExceptionEpilogue(node)), BoundBlock)
Lowering\LocalRewriter\LocalRewriter_Try.vb (11)
49Dim block = DirectCast(statement, BoundBlock) 69tryBlock As BoundBlock, 71finallyBlockOpt As BoundBlock, 107Private Function RewriteFinallyBlock(tryStatement As BoundTryStatement) As BoundBlock 108Dim node As BoundBlock = tryStatement.FinallyBlockOpt 114Dim newFinally = DirectCast(Visit(node), BoundBlock) 127Private Function RewriteTryBlock(tryStatement As BoundTryStatement) As BoundBlock 128Dim node As BoundBlock = tryStatement.TryBlock 129Dim newTry = DirectCast(Visit(node), BoundBlock) 146Dim newCatchBody As BoundBlock = DirectCast(Visit(node.Body), BoundBlock)
Lowering\LocalRewriter\LocalRewriter_UnstructuredExceptionHandling.vb (4)
45Dim body As BoundBlock 50body = DirectCast(VisitBlock(node.Body), BoundBlock) 64Private Function RewriteUnstructuredExceptionHandlingStatementIntoBlock(node As BoundUnstructuredExceptionHandlingStatement) As BoundBlock 163statements.Add(DirectCast(Visit(node.Body), BoundBlock))
Lowering\LocalRewriter\LocalRewriter_Using.vb (4)
79Dim currentBody = DirectCast(Visit(node.Body), BoundBlock) 198currentBody As BoundBlock 199) As BoundBlock 213Dim newBody = DirectCast(Concat(currentBody, SyntheticBoundNodeFactory.HiddenSequencePoint()), BoundBlock)
Lowering\LocalRewriter\LocalRewriter_With.vb (2)
55replaceWith As BoundExpression) As BoundBlock 61Dim block As BoundBlock = node.Body
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (5)
337Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode 347Protected Function RewriteBlock(node As BoundBlock, 349newLocals As ArrayBuilder(Of LocalSymbol)) As BoundBlock 426Protected Function RewriteBlock(node As BoundBlock) As BoundBlock
Lowering\Rewriter.vb (4)
20body As BoundBlock, 34isBodySynthesized As Boolean) As BoundBlock 124Friend Shared Function RewriteIteratorAndAsync(bodyWithoutLambdas As BoundBlock, 131<Out> ByRef stateMachineTypeOpt As StateMachineTypeSymbol) As BoundBlock
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (7)
242Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode 290Friend Function MakeStateMachineScope(hoistedLocals As ImmutableArray(Of FieldSymbol), statement As BoundStatement) As BoundBlock 299Dim rewrittenBlock = DirectCast(statement, BoundBlock) 343Dim tryBlock As BoundBlock = Me.F.Block(DirectCast(Me.Visit(node.TryBlock), BoundStatement)) 385Dim finallyBlockOpt As BoundBlock = If(node.FinallyBlockOpt Is Nothing, Nothing, 392thenClause:=DirectCast(Me.Visit(node.FinallyBlockOpt), BoundBlock)), 454Dim rewrittenBody = DirectCast(Me.Visit(node.Body), BoundBlock)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (2)
96Protected Function Rewrite() As BoundBlock 122Private Function GenerateKickoffMethodBody() As BoundBlock
Lowering\SyntheticBoundNodeFactory.vb (8)
311Public Function Block(statements As ImmutableArray(Of BoundStatement)) As BoundBlock 315Public Function Block(locals As ImmutableArray(Of LocalSymbol), statements As ImmutableArray(Of BoundStatement)) As BoundBlock 321Public Function Block() As BoundBlock 325Public Function Block(ParamArray statements As BoundStatement()) As BoundBlock 329Public Function Block(locals As ImmutableArray(Of LocalSymbol), ParamArray statements As BoundStatement()) As BoundBlock 1055Public Function [Try](tryBlock As BoundBlock, 1057Optional finallyBlock As BoundBlock = Nothing, 1067Public Function [Catch](local As LocalSymbol, block As BoundBlock, Optional isSynthesizedAsyncCatchAll As Boolean = False) As BoundCatchBlock
Operations\VisualBasicOperationFactory.vb (2)
182Return CreateBoundBlockOperation(DirectCast(boundNode, BoundBlock)) 1294Private Function CreateBoundBlockOperation(boundBlock As BoundBlock) As IBlockOperation
Symbols\MethodSymbol.vb (1)
809Friend Overridable Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out()> Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\SourceMemberMethodSymbol.vb (1)
540Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\SourceMethodSymbol.vb (2)
1176Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 1196Return DirectCast(boundStatement, BoundBlock)
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
469Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\SynthesizedEntryPointSymbol.vb (3)
58Friend MustOverride Function CreateBody() As BoundBlock 251Friend Overrides Function CreateBody() As BoundBlock 340Friend Overrides Function CreateBody() As BoundBlock
Symbols\Source\SynthesizedEventAccessorSymbol.vb (5)
108Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 116diagnostics As BindingDiagnosticBag) As BoundBlock 118Dim result As BoundBlock = If(eventSymbol.IsWindowsRuntimeEvent, 135diagnostics As BindingDiagnosticBag) As BoundBlock 271diagnostics As BindingDiagnosticBag) As BoundBlock
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
135Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
48Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out()> Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (2)
54Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out()> Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 123Return DirectCast(boundStatement, BoundBlock)
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
46Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\SynthesizedSymbols\SynthesizedPropertyAccessorBase.vb (1)
16Friend Overloads Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (7)
Rewriters\CapturedVariableRewriter.vb (1)
45Public Overrides Function VisitBlock(node As BoundBlock) As BoundNode
Rewriters\LocalDeclarationRewriter.vb (2)
15Friend Shared Function Rewrite(compilation As VisualBasicCompilation, container As EENamedTypeSymbol, block As BoundBlock) As BoundBlock
Symbols\EEConstructorSymbol.vb (1)
17Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out> ByRef Optional methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\EEMethodSymbol.vb (3)
458Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out> ByRef Optional methodBodyBinder As Binder = Nothing) As BoundBlock 519newBody = DirectCast(PlaceholderLocalRewriter.Rewrite(_compilation, _container, newBody, diagnostics.DiagnosticBag), BoundBlock) 572diagnostics.DiagnosticBag), BoundBlock)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
417Friend Function GetBoundMethodBody(this As MethodSymbol, compilationState As TypeCompilationState, diagnostics As DiagnosticBag, <Out()> Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock