4 types derived from BoundStatementList
Microsoft.CodeAnalysis.CSharp (4)
Generated\BoundNodes.xml.Generated.cs (4)
3191internal sealed partial class BoundBlock : BoundStatementList 3227internal sealed partial class BoundScope : BoundStatementList 5545internal sealed partial class BoundSwitchSection : BoundStatementList 7397internal sealed partial class BoundTypeOrInstanceInitializers : BoundStatementList
14 instantiations of BoundStatementList
Microsoft.CodeAnalysis.CSharp (14)
BoundTree\Constructors.cs (1)
568return new BoundStatementList(syntax, statements, hasErrors) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
4725var result = new BoundStatementList(this.Syntax, statements, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1192return new BoundStatementList(node.Syntax, statements); 1251rewrittenFilterPrologue = new BoundStatementList(rewrittenFilter.Syntax, prologueBuilder.ToImmutableAndFree());
Lowering\Instrumentation\DebugInfoInjector.cs (1)
253return new BoundStatementList(forEachSyntax,
Lowering\LocalRewriter\LocalRewriter.cs (1)
691return new BoundStatementList(node.Syntax, rewrittenStatements, node.HasErrors);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
573BoundStatement initializer = new BoundStatementList(forEachSyntax, 752BoundStatement initializer = new BoundStatementList(forEachSyntax,
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (2)
69return new BoundStatementList(syntax, statements, hasErrors); 97return new BoundStatementList(syntax, builder.ToImmutableAndFree(), hasErrors);
Lowering\SpillSequenceSpiller.cs (1)
649exceptionFilterPrologueOpt = new BoundStatementList(node.Syntax, builder.GetStatements());
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
745translated = new BoundStatementList(node.Syntax, statements);
Lowering\SyntheticBoundNodeFactory.cs (2)
503return new BoundStatementList(Syntax, statements) { WasCompilerGenerated = true }; 508return new BoundStatementList(Syntax, ImmutableArray.Create(first, second)) { WasCompilerGenerated = true };
67 references to BoundStatementList
Microsoft.CodeAnalysis.CSharp (67)
Binder\Binder_Statements.cs (1)
2775return 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)
305case BoundStatementList list:
BoundTree\BoundTreeVisitors.cs (1)
112return VisitStatementList(node as BoundStatementList, arg);
BoundTree\Constructors.cs (4)
551public static BoundStatementList Synthesized(SyntaxNode syntax, params BoundStatement[] statements) 556public static BoundStatementList Synthesized(SyntaxNode syntax, bool hasErrors, params BoundStatement[] statements) 561public static BoundStatementList Synthesized(SyntaxNode syntax, ImmutableArray<BoundStatement> statements) 566public 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)
1646BoundStatementList filterPrologue; 1650filterPrologue = (BoundStatementList)this.Visit(node.ExceptionFilterPrologueOpt); 2167var filterPrologue = node.ExceptionFilterPrologueOpt; 2197filterPrologue = (filterPrologue != null) ? (BoundStatementList)this.Visit(filterPrologue) : null;
Compiler\MethodCompiler.cs (6)
1004BoundStatementList analyzedInitializers = null; 1329processedInitializers.LoweredInitializers = (BoundStatementList)lowered; 1337BoundStatementList lowered = (BoundStatementList)processedInitializers.LoweredInitializers; 1361var boundBody = BoundStatementList.Synthesized(syntax, boundStatements);
FlowAnalysis\AbstractFlowPass.cs (2)
3000public override BoundNode VisitStatementList(BoundStatementList node) 3005private BoundNode VisitStatementListWorker(BoundStatementList node)
FlowAnalysis\ControlFlowPass.cs (1)
252base.VisitStatementList((BoundStatementList)statement);
Generated\BoundNodes.xml.Generated.cs (15)
4148public BoundCatchBlock(SyntaxNode syntax, ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll, bool hasErrors = false) 4167public BoundStatementList? ExceptionFilterPrologueOpt { get; } 4175public BoundCatchBlock Update(ImmutableArray<LocalSymbol> locals, BoundExpression? exceptionSourceOpt, TypeSymbol? exceptionTypeOpt, BoundStatementList? exceptionFilterPrologueOpt, BoundExpression? exceptionFilterOpt, BoundBlock body, bool isSynthesizedAsyncCatchAll) 4721public BoundStatementList Update(ImmutableArray<BoundStatement> statements) 4725var result = new BoundStatementList(this.Syntax, statements, this.HasErrors); 8759return VisitStatementList((BoundStatementList)node, arg); 9092public virtual R VisitStatementList(BoundStatementList node, A arg) => this.DefaultVisit(node, arg); 9320public virtual BoundNode? VisitStatementList(BoundStatementList node) => this.DefaultVisit(node); 9897public override BoundNode? VisitStatementList(BoundStatementList node) 11040BoundStatementList? exceptionFilterPrologueOpt = (BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt); 11114public override BoundNode? VisitStatementList(BoundStatementList node) 12999BoundStatementList? exceptionFilterPrologueOpt = (BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt); 15492public override TreeDumperNode VisitStatementList(BoundStatementList node, object? arg) => new TreeDumperNode("statementList", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
543var filterPrologueOpt = node.ExceptionFilterPrologueOpt; 578var rewrittenPrologue = (BoundStatementList)this.Visit(filterPrologueOpt); 592var newPrologue = _F.StatementList(prologueBuilder.ToImmutableAndFree());
Lowering\ClosureConversion\ClosureConversion.cs (3)
1223var rewrittenFilterPrologue = (BoundStatementList)this.Visit(node.ExceptionFilterPrologueOpt); 1288public override BoundNode VisitStatementList(BoundStatementList node)
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
210ref BoundStatementList? rewrittenFilterPrologue,
Lowering\Instrumentation\DebugInfoInjector.cs (1)
404ref BoundStatementList? rewrittenFilterPrologue,
Lowering\Instrumentation\Instrumenter.cs (1)
281ref BoundStatementList? rewrittenFilterPrologue,
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
498ref 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)
92return BoundStatementList.Synthesized(syntax, hasErrors, 141return BoundStatementList.Synthesized(syntax, hasErrors,
Lowering\MethodToClassRewriter.cs (1)
139(BoundStatementList?)this.Visit(node.ExceptionFilterPrologueOpt),
Lowering\SpillSequenceSpiller.cs (1)
641var exceptionFilterPrologueOpt = node.ExceptionFilterPrologueOpt;
Lowering\SyntheticBoundNodeFactory.cs (3)
496public BoundStatementList StatementList() 501public BoundStatementList StatementList(ImmutableArray<BoundStatement> statements) 506public BoundStatementList StatementList(BoundStatement first, BoundStatement second)
Operations\CSharpOperationFactory_Methods.cs (1)
27return ((BoundStatementList)statement).Statements;