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