2 instantiations of BoundIfStatement
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
2628result = new BoundIfStatement(node, condition, consequence, alternative);
Generated\BoundNodes.xml.Generated.cs (1)
3918var result = new BoundIfStatement(this.Syntax, condition, consequence, alternativeOpt, this.HasErrors);
44 references to BoundIfStatement
Microsoft.CodeAnalysis.CSharp (44)
Binder\RefSafetyAnalysis.cs (2)
407public override BoundNode? VisitIfStatement(BoundIfStatement node) 415if (alternative is BoundIfStatement elseIfStatement)
BoundTree\BoundTreeRewriter.cs (4)
297public sealed override BoundNode? VisitIfStatement(BoundIfStatement node) 299if (node.AlternativeOpt is not BoundIfStatement ifStatement) 304var stack = ArrayBuilder<BoundIfStatement>.GetInstance(); 313if (alternative is not BoundIfStatement nextIfStatement)
BoundTree\BoundTreeVisitors.cs (1)
92return VisitIfStatement(node as BoundIfStatement, arg);
BoundTree\BoundTreeWalker.cs (2)
233public 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)
2583Debug.Assert(alternative is BoundIfStatement);
Compilation\MemberSemanticModel.NodeMapBuilder.cs (2)
314public override BoundNode VisitIfStatement(BoundIfStatement node) 327if (alternative is BoundIfStatement elseIfStatement)
FlowAnalysis\AbstractFlowPass.cs (3)
1781public sealed override BoundNode VisitIfStatement(BoundIfStatement node) 1785var stack = ArrayBuilder<(TLocalState, BoundIfStatement)>.GetInstance(); 1804if (alternative is BoundIfStatement elseIfStatement)
Generated\BoundNodes.xml.Generated.cs (8)
3914public BoundIfStatement Update(BoundExpression condition, BoundStatement consequence, BoundStatement? alternativeOpt) 3918var result = new BoundIfStatement(this.Syntax, condition, consequence, alternativeOpt, this.HasErrors); 9282return VisitIfStatement((BoundIfStatement)node, arg); 9662public virtual R VisitIfStatement(BoundIfStatement node, A arg) => this.DefaultVisit(node, arg); 9903public virtual BoundNode? VisitIfStatement(BoundIfStatement node) => this.DefaultVisit(node); 10431public override BoundNode? VisitIfStatement(BoundIfStatement node) 11735public override BoundNode? VisitIfStatement(BoundIfStatement node) 16360public override TreeDumperNode VisitIfStatement(BoundIfStatement node, object? arg) => new TreeDumperNode("ifStatement", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
1146public override BoundNode VisitIfStatement(BoundIfStatement node) 1159if (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_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)
174return CreateBoundIfStatementOperation((BoundIfStatement)boundNode); 1887private IConditionalOperation CreateBoundIfStatementOperation(BoundIfStatement boundIfStatement) 1889var stack = ArrayBuilder<BoundIfStatement>.GetInstance(); 1898if (alternative is BoundIfStatement elseIfStatement)