1 instantiation of BoundIfStatement
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
3875var result = new BoundIfStatement(this.Syntax, condition, consequence, alternativeOpt, this.HasErrors);
45 references to BoundIfStatement
Microsoft.CodeAnalysis.CSharp (45)
BoundTree\BoundTreeRewriter.cs (4)
155public sealed override BoundNode? VisitIfStatement(BoundIfStatement node) 157if (node.AlternativeOpt is not BoundIfStatement ifStatement) 162var stack = ArrayBuilder<BoundIfStatement>.GetInstance(); 171if (alternative is not BoundIfStatement nextIfStatement)
BoundTree\BoundTreeVisitors.cs (1)
92return VisitIfStatement(node as BoundIfStatement, arg);
BoundTree\BoundTreeWalker.cs (2)
233public sealed override BoundNode? VisitIfStatement(BoundIfStatement node) 244if (alternative is BoundIfStatement elseIfStatement)
BoundTree\NullabilityRewriter.cs (3)
30public override BoundNode? VisitIfStatement(BoundIfStatement node) 32var stack = ArrayBuilder<(BoundIfStatement, BoundExpression, BoundStatement)>.GetInstance(); 49if (alternative is BoundIfStatement elseIfStatement)
Compilation\MemberSemanticModel.cs (1)
2532Debug.Assert(alternative is BoundIfStatement);
Compilation\MemberSemanticModel.NodeMapBuilder.cs (2)
314public override BoundNode VisitIfStatement(BoundIfStatement node) 327if (alternative is BoundIfStatement elseIfStatement)
FlowAnalysis\AbstractFlowPass.cs (3)
1765public sealed override BoundNode VisitIfStatement(BoundIfStatement node) 1769var stack = ArrayBuilder<(TLocalState, BoundIfStatement)>.GetInstance(); 1788if (alternative is BoundIfStatement elseIfStatement)
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
189public override BoundNode? VisitIfStatement(BoundIfStatement node) 202if (alternative is BoundIfStatement elseIfStatement)
Generated\BoundNodes.xml.Generated.cs (8)
3871public BoundIfStatement Update(BoundExpression condition, BoundStatement consequence, BoundStatement? alternativeOpt) 3875var result = new BoundIfStatement(this.Syntax, condition, consequence, alternativeOpt, this.HasErrors); 9034return VisitIfStatement((BoundIfStatement)node, arg); 9405public virtual R VisitIfStatement(BoundIfStatement node, A arg) => this.DefaultVisit(node, arg); 9641public virtual BoundNode? VisitIfStatement(BoundIfStatement node) => this.DefaultVisit(node); 10150public override BoundNode? VisitIfStatement(BoundIfStatement node) 11361public override BoundNode? VisitIfStatement(BoundIfStatement node) 15830public override TreeDumperNode VisitIfStatement(BoundIfStatement node, object? arg) => new TreeDumperNode("ifStatement", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
1071public override BoundNode VisitIfStatement(BoundIfStatement node) 1084if (alternative is BoundIfStatement elseIfStatement)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
374public override BoundStatement InstrumentIfStatementConditionalGoto(BoundIfStatement original, BoundStatement rewritten) 530syntaxForSpan = ((BoundIfStatement)statement).Condition.Syntax;
Lowering\Instrumentation\CompoundInstrumenter.cs (2)
134public override BoundStatement InstrumentIfStatementConditionalGoto(BoundIfStatement original, BoundStatement rewritten) 139public override BoundExpression InstrumentIfStatementCondition(BoundIfStatement original, BoundExpression rewrittenCondition, SyntheticBoundNodeFactory factory)
Lowering\Instrumentation\DebugInfoInjector.cs (2)
358public override BoundStatement InstrumentIfStatementConditionalGoto(BoundIfStatement original, BoundStatement rewritten) 370public override BoundExpression InstrumentIfStatementCondition(BoundIfStatement original, BoundExpression rewrittenCondition, SyntheticBoundNodeFactory factory)
Lowering\Instrumentation\Instrumenter.cs (2)
192public virtual BoundStatement InstrumentIfStatementConditionalGoto(BoundIfStatement original, BoundStatement rewritten) 198public virtual BoundExpression InstrumentIfStatementCondition(BoundIfStatement original, BoundExpression rewrittenCondition, SyntheticBoundNodeFactory factory)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1148if (node is BoundIfStatement)
Lowering\LocalRewriter\LocalRewriter_IfStatement.cs (4)
14public override BoundNode VisitIfStatement(BoundIfStatement node) 18var stack = ArrayBuilder<(BoundIfStatement, GeneratedLabelSymbol, int)>.GetInstance(); 34var elseIfStatement = node.AlternativeOpt as BoundIfStatement;
Operations\CSharpOperationFactory.cs (4)
175return CreateBoundIfStatementOperation((BoundIfStatement)boundNode); 1802private IConditionalOperation CreateBoundIfStatementOperation(BoundIfStatement boundIfStatement) 1804var stack = ArrayBuilder<BoundIfStatement>.GetInstance(); 1813if (alternative is BoundIfStatement elseIfStatement)