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 7713internal 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)
632arrayVarDecl = new BoundStatementList(arrayVarDecl.Syntax, ImmutableArray.Create(collectionVarInitializationPreamble, arrayVarDecl)).MakeCompilerGenerated(); 661BoundStatement initializer = new BoundStatementList(forEachSyntax, 954BoundStatement initializer = new BoundStatementList(forEachSyntax,
Lowering\SpillSequenceSpiller.cs (1)
720exceptionFilterPrologueOpt = new BoundStatementList(node.Syntax, builder.GetStatements());
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
762translated = new BoundStatementList(node.Syntax, statements);
Lowering\SyntheticBoundNodeFactory.cs (2)
541return new BoundStatementList(Syntax, statements) { WasCompilerGenerated = true }; 546return new BoundStatementList(Syntax, ImmutableArray.Create(first, second)) { WasCompilerGenerated = true };
67 references to BoundStatementList
Microsoft.CodeAnalysis.CSharp (67)
Binder\Binder_Statements.cs (1)
2780return 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)
946BoundStatementList analyzedInitializers = null; 1279processedInitializers.LoweredInitializers = (BoundStatementList)lowered; 1287BoundStatementList lowered = (BoundStatementList)processedInitializers.LoweredInitializers; 1311var boundBody = BoundStatementList.Synthesized(syntax, boundStatements);
FlowAnalysis\AbstractFlowPass.cs (2)
3102public override BoundNode VisitStatementList(BoundStatementList node) 3107private 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); 9081return VisitStatementList((BoundStatementList)node, arg); 9427public virtual R VisitStatementList(BoundStatementList node, A arg) => this.DefaultVisit(node, arg); 9663public virtual BoundNode? VisitStatementList(BoundStatementList node) => this.DefaultVisit(node); 10252public override BoundNode? VisitStatementList(BoundStatementList node) 11433BoundStatementList? exceptionFilterPrologueOpt = (BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt); 11507public override BoundNode? VisitStatementList(BoundStatementList node) 13464BoundStatementList? exceptionFilterPrologueOpt = (BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt); 16050public 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)
534public BoundStatementList StatementList() 539public BoundStatementList StatementList(ImmutableArray<BoundStatement> statements) 544public BoundStatementList StatementList(BoundStatement first, BoundStatement second)
Operations\CSharpOperationFactory_Methods.cs (1)
27return ((BoundStatementList)statement).Statements;