46 references to BoundBlock
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder.cs (1)
869return new BoundBlock(statement.Syntax, locals, ImmutableArray.Create(statement))
Binder\Binder_Statements.cs (2)
3431return new BoundBlock(node, locals, ImmutableArray.Create(statement)) { WasCompilerGenerated = node.Kind() != SyntaxKind.ArrowExpressionClause }; 3599blockBody: new BoundBlock(typeDecl, ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty).MakeCompilerGenerated(),
Binder\ForLoopBinder.cs (2)
115increment = new BoundBlock(scopeDesignator, locals, ((BoundStatementList)increment).Statements) 120increment = new BoundBlock(increment.Syntax, locals, ImmutableArray.Create(increment))
BoundTree\Constructors.cs (3)
605return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray.Create(statement)) 611return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements) { WasCompilerGenerated = true }; 616return new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements.AsImmutableOrNull()) { WasCompilerGenerated = true };
Compiler\MethodBodySynthesizer.cs (3)
509return new BoundBlock(syntax, 556return new BoundBlock( 564new BoundBlock(
Compiler\MethodCompiler.cs (3)
1012body = new BoundBlock(methodSymbol.GetNonNullSyntaxNode(), ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty) { WasCompilerGenerated = true }; 1895body = new BoundBlock(constructor.Syntax, constructor.Locals, ImmutableArray.Create<BoundStatement>(constructor.Initializer)); 1899body = new BoundBlock(constructor.Syntax, constructor.Locals, ImmutableArray.Create<BoundStatement>(constructor.Initializer, body));
FlowAnalysis\FlowAnalysisPass.cs (1)
86block = new BoundBlock(block.Syntax, ImmutableArray<LocalSymbol>.Empty, newStatements) { WasCompilerGenerated = true };
Lowering\ClosureConversion\ClosureConversion.cs (2)
296body = new BoundBlock(body.Syntax, _addedLocals.ToImmutableAndFree(), _addedStatements.ToImmutableAndFree()) { WasCompilerGenerated = true }; 1304return new BoundBlock(node.Syntax, newLocals.ToImmutableAndFree(), newStatements.ToImmutableAndFree(), node.HasErrors);
Lowering\InitializerRewriter.cs (1)
112boundStatement = new BoundBlock(syntax, fieldInit.Locals, ImmutableArray.Create(boundStatement)) { WasCompilerGenerated = fieldInit.WasCompilerGenerated };
Lowering\LocalRewriter\LocalRewriter_Block.cs (1)
105? new BoundBlock(node.Syntax, ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty)
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (1)
67new BoundBlock(syntax,
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (7)
208result = new BoundBlock( 220result = new BoundBlock( 346finallyBlockOpt = new BoundBlock(forEachSyntax, 402finallyBlockOpt = new BoundBlock(forEachSyntax, 417tryBlock: new BoundBlock(forEachSyntax, 676return new BoundBlock( 984BoundStatement result = new BoundBlock(
Lowering\LocalRewriter\LocalRewriter_ForStatement.cs (3)
166return new BoundBlock(syntax, outerLocals, statements, hasErrors); 262statementBuilder.Add(new BoundBlock(syntax, node.InnerLocals, blockBuilder.ToImmutableAndFree())); 268return new BoundBlock(syntax, node.OuterLocals, statements, node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (2)
123return new BoundBlock( 173return new BoundBlock(
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (4)
79return new BoundBlock( 91BoundBlock body = new BoundBlock(syntax, ImmutableArray<LocalSymbol>.Empty, statements); 192return new BoundBlock( 255return new BoundBlock(
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (1)
143new BoundBlock(syntax,
Lowering\SpillSequenceSpiller.cs (1)
297var result = new BoundBlock(statement.Syntax, builder.GetLocals(), builder.GetStatements()) { WasCompilerGenerated = true };
Lowering\SyntheticBoundNodeFactory.cs (1)
478return new BoundBlock(Syntax, locals, statements) { WasCompilerGenerated = true };
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (5)
387return new BoundBlock( 410return new BoundBlock( 481return new BoundBlock( 488return new BoundBlock(syntax, 604return new BoundBlock(syntax,
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EEConstructorSymbol.cs (1)
29new BoundBlock(
Symbols\EEMethodSymbol.cs (1)
574body = new BoundBlock(syntax, localsBuilder.ToImmutableAndFree(), statementsBuilder.ToImmutableAndFree()) { WasCompilerGenerated = true };