3 instantiations of BoundLeafDecisionDagNode
Microsoft.CodeAnalysis.CSharp (3)
Binder\DecisionDagBuilder.cs (2)
751var defaultDecision = new BoundLeafDecisionDagNode(syntax, _defaultLabel); 1035BoundDecisionDagNode final = uniqifyDagNode(new BoundLeafDecisionDagNode(syntax, label));
Generated\BoundNodes.xml.Generated.cs (1)
5173var result = new BoundLeafDecisionDagNode(this.Syntax, label, this.HasErrors);
32 references to BoundLeafDecisionDagNode
Microsoft.CodeAnalysis.CSharp (32)
Binder\DecisionDagBuilder.cs (3)
30/// when-clause of a switch case; and <see cref="BoundLeafDecisionDagNode"/> represents a leaf node when we 751var defaultDecision = new BoundLeafDecisionDagNode(syntax, _defaultLabel); 974private void ComputeBoundDecisionDagNodes(DecisionDag decisionDag, BoundLeafDecisionDagNode defaultDecision)
Binder\PatternExplainer.cs (1)
132case BoundLeafDecisionDagNode:
Binder\SwitchExpressionBinder.cs (1)
93if (n is BoundLeafDecisionDagNode leaf && leaf.Label == defaultLabel)
BoundTree\BoundDecisionDag.cs (3)
35case BoundLeafDecisionDagNode d: 55if (node is BoundLeafDecisionDagNode leaf) 132case BoundLeafDecisionDagNode p:
BoundTree\BoundDecisionDagNode.cs (4)
31case (BoundLeafDecisionDagNode n1, BoundLeafDecisionDagNode n2): 48case BoundLeafDecisionDagNode n: 110case BoundLeafDecisionDagNode node:
FlowAnalysis\NullableWalker_Patterns.cs (2)
664case BoundLeafDecisionDagNode d: 901var leaf = nodes.Where(n => n is BoundLeafDecisionDagNode leaf && leaf.Label == node.DefaultLabel).First();
Generated\BoundNodes.xml.Generated.cs (8)
5169public BoundLeafDecisionDagNode Update(LabelSymbol label) 5173var result = new BoundLeafDecisionDagNode(this.Syntax, label, this.HasErrors); 9101return VisitLeafDecisionDagNode((BoundLeafDecisionDagNode)node, arg); 9438public virtual R VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node, A arg) => this.DefaultVisit(node, arg); 9674public virtual BoundNode? VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node) => this.DefaultVisit(node); 10308public override BoundNode? VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node) => null; 11568public override BoundNode? VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node) => node; 16132public override TreeDumperNode VisitLeafDecisionDagNode(BoundLeafDecisionDagNode node, object? arg) => new TreeDumperNode("leafDecisionDagNode", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (5)
77case BoundLeafDecisionDagNode d: 115_dagNodeLabels.Add(dag, label = dag is BoundLeafDecisionDagNode d ? d.Label : _factory.GenerateLabel("dagNode")); 378case BoundLeafDecisionDagNode _: 1152var whenTrue = (BoundLeafDecisionDagNode)whenClause.WhenTrue;
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (4)
69case BoundLeafDecisionDagNode n: 141return node is BoundLeafDecisionDagNode l && l.Label == whenFalseLabel; 277case BoundLeafDecisionDagNode leafNode: 284Debug.Assert(whenNode.WhenTrue is BoundLeafDecisionDagNode d && d.Label == whenTrueLabel);
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
43if (dag is BoundLeafDecisionDagNode d)