4 types derived from BoundStatementList
Microsoft.CodeAnalysis.CSharp (4)
Generated\BoundNodes.xml.Generated.cs (4)
3302internal sealed partial class BoundBlock : BoundStatementList 3338internal sealed partial class BoundScope : BoundStatementList 5656internal sealed partial class BoundSwitchSection : BoundStatementList 7715internal sealed partial class BoundTypeOrInstanceInitializers : BoundStatementList
11 instantiations of BoundStatementList
Microsoft.CodeAnalysis.CSharp (11)
BoundTree\Constructors.cs (1)
625return new BoundStatementList(syntax, statements, hasErrors) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
4836var result = new BoundStatementList(this.Syntax, statements, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1208return new BoundStatementList(node.Syntax, statements);
Lowering\LocalRewriter\LocalRewriter.cs (1)
814return new BoundStatementList(node.Syntax, rewrittenStatements, node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (3)
630arrayVarDecl = new BoundStatementList(arrayVarDecl.Syntax, ImmutableArray.Create(collectionVarInitializationPreamble, arrayVarDecl)).MakeCompilerGenerated(); 659BoundStatement initializer = new BoundStatementList(forEachSyntax, 952BoundStatement initializer = new BoundStatementList(forEachSyntax,
Lowering\SpillSequenceSpiller.cs (1)
720exceptionFilterPrologueOpt = new BoundStatementList(node.Syntax, builder.GetStatements());
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
763translated = new BoundStatementList(node.Syntax, statements);
Lowering\SyntheticBoundNodeFactory.cs (2)
490return new BoundStatementList(Syntax, statements) { WasCompilerGenerated = true }; 495return new BoundStatementList(Syntax, ImmutableArray.Create(first, second)) { WasCompilerGenerated = true };
67 references to BoundStatementList
Microsoft.CodeAnalysis.CSharp (67)
Binder\Binder_Statements.cs (1)
2873return BoundStatementList.Synthesized(statements.Node, statementBuilder.ToImmutableAndFree());
Binder\ForLoopBinder.cs (2)
108Debug.Assert(increment.Kind != BoundKind.StatementList || ((BoundStatementList)increment).Statements.Length > 1); 115increment = new BoundBlock(scopeDesignator, locals, ((BoundStatementList)increment).Statements)
BoundTree\BoundNode_Source.cs (1)
326case BoundStatementList list:
BoundTree\BoundTreeVisitors.cs (1)
112return VisitStatementList(node as BoundStatementList, arg);
BoundTree\Constructors.cs (4)
608public static BoundStatementList Synthesized(SyntaxNode syntax, params BoundStatement[] statements) 613public static BoundStatementList Synthesized(SyntaxNode syntax, bool hasErrors, params BoundStatement[] statements) 618public static BoundStatementList Synthesized(SyntaxNode syntax, ImmutableArray<BoundStatement> statements) 623public static BoundStatementList Synthesized(SyntaxNode syntax, bool hasErrors, ImmutableArray<BoundStatement> statements)
CodeGen\EmitStatement.cs (4)
64EmitStatementList((BoundStatementList)statement); 125private void EmitStatementList(BoundStatementList list) 657var list = _boundBody as BoundStatementList;
CodeGen\Optimizer.cs (4)
1713BoundStatementList filterPrologue; 1717filterPrologue = (BoundStatementList)this.Visit(node.ExceptionFilterPrologueOpt); 2290var filterPrologue = node.ExceptionFilterPrologueOpt; 2320filterPrologue = (filterPrologue != null) ? (BoundStatementList)this.Visit(filterPrologue) : null;
Compiler\MethodCompiler.cs (6)
953BoundStatementList analyzedInitializers = null; 1286processedInitializers.LoweredInitializers = (BoundStatementList)lowered; 1294BoundStatementList lowered = (BoundStatementList)processedInitializers.LoweredInitializers; 1318var boundBody = BoundStatementList.Synthesized(syntax, boundStatements);
FlowAnalysis\AbstractFlowPass.cs (2)
3192public override BoundNode VisitStatementList(BoundStatementList node) 3197private BoundNode VisitStatementListWorker(BoundStatementList node)
FlowAnalysis\ControlFlowPass.cs (1)
252base.VisitStatementList((BoundStatementList)statement);
Generated\BoundNodes.xml.Generated.cs (15)
4259public BoundCatchBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll, bool hasErrors = false) 4278public BoundStatementList? ExceptionFilterPrologueOpt { get; } 4286public BoundCatchBlock Update(ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll) 4832public BoundStatementList Update(ImmutableArray<BoundStatement> statements) 4836var result = new BoundStatementList(this.Syntax, statements, this.HasErrors); 9083return VisitStatementList((BoundStatementList)node, arg); 9429public virtual R VisitStatementList(BoundStatementList node, A arg) => this.DefaultVisit(node, arg); 9665public virtual BoundNode? VisitStatementList(BoundStatementList node) => this.DefaultVisit(node); 10254public override BoundNode? VisitStatementList(BoundStatementList node) 11435BoundStatementList? exceptionFilterPrologueOpt = (BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt); 11509public override BoundNode? VisitStatementList(BoundStatementList node) 13466BoundStatementList? exceptionFilterPrologueOpt = (BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt); 16052public override TreeDumperNode VisitStatementList(BoundStatementList node, object? arg) => new TreeDumperNode("statementList", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
574var filterPrologueOpt = node.ExceptionFilterPrologueOpt; 609var rewrittenPrologue = (BoundStatementList)this.Visit(filterPrologueOpt); 623var newPrologue = _F.StatementList(prologueBuilder.ToImmutableAndFree());
Lowering\ClosureConversion\ClosureConversion.cs (3)
1239var rewrittenFilterPrologue = (BoundStatementList)this.Visit(node.ExceptionFilterPrologueOpt); 1304public override BoundNode VisitStatementList(BoundStatementList node)
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
221ref BoundStatementList? rewrittenFilterPrologue,
Lowering\Instrumentation\DebugInfoInjector.cs (1)
457ref BoundStatementList? rewrittenFilterPrologue,
Lowering\Instrumentation\Instrumenter.cs (1)
296ref BoundStatementList? rewrittenFilterPrologue,
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
496ref BoundStatementList? rewrittenFilterPrologue,
Lowering\LocalRewriter\LocalRewriter_DoStatement.cs (2)
57return BoundStatementList.Synthesized(syntax, node.HasErrors, 65return BoundStatementList.Synthesized(syntax, node.HasErrors,
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (1)
18return RewriteExpressionStatement(node) ?? BoundStatementList.Synthesized(node.Syntax);
Lowering\LocalRewriter\LocalRewriter_LabeledStatement.cs (1)
42return BoundStatementList.Synthesized(node.Syntax, labelStatement, rewrittenBody);
Lowering\LocalRewriter\LocalRewriter_MultipleLocalDeclarations.cs (1)
45return BoundStatementList.Synthesized(node.Syntax, node.HasErrors, inits.ToImmutableAndFree());
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (2)
86BoundStatementList? rewrittenFilterPrologue = (BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt);
Lowering\LocalRewriter\LocalRewriter_WhileStatement.cs (2)
97return BoundStatementList.Synthesized(syntax, hasErrors, 146return BoundStatementList.Synthesized(syntax, hasErrors,
Lowering\MethodToClassRewriter.cs (1)
139(BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt),
Lowering\SpillSequenceSpiller.cs (1)
712var exceptionFilterPrologueOpt = node.ExceptionFilterPrologueOpt;
Lowering\SyntheticBoundNodeFactory.cs (3)
483public BoundStatementList StatementList() 488public BoundStatementList StatementList(ImmutableArray<BoundStatement> statements) 493public BoundStatementList StatementList(BoundStatement first, BoundStatement second)
Operations\CSharpOperationFactory_Methods.cs (1)
27return ((BoundStatementList)statement).Statements;