1 write to WhenExpression
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5119this.WhenExpression = whenExpression;
20 references to WhenExpression
Microsoft.CodeAnalysis.CSharp (20)
BoundTree\BoundDecisionDag.cs (1)
131return p.Update(p.Bindings, p.WhenExpression, replacement[p.WhenTrue], (p.WhenFalse != null) ? replacement[p.WhenFalse] : null);
BoundTree\BoundDecisionDagNode.cs (4)
30return n1.WhenExpression == n2.WhenExpression && n1.WhenTrue == n2.WhenTrue && n1.WhenFalse == n2.WhenFalse; 47return Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenExpression), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.WhenTrue))); 97builder.Append(node.WhenExpression is { } when
FlowAnalysis\NullableWalker_Patterns.cs (3)
705if (w.WhenExpression != null && w.WhenExpression.ConstantValueOpt != ConstantValue.True) 707VisitCondition(w.WhenExpression);
Generated\BoundNodes.xml.Generated.cs (4)
5134if (bindings != this.Bindings || whenExpression != this.WhenExpression || whenTrue != this.WhenTrue || whenFalse != this.WhenFalse) 10303this.Visit(node.WhenExpression); 11563BoundExpression? whenExpression = (BoundExpression?)this.Visit(node.WhenExpression); 16126new TreeDumperNode("whenExpression", null, new TreeDumperNode[] { Visit(node.WhenExpression, null) }),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (6)
351.Any(static (node, mightAssignWalker) => node is BoundWhenDecisionDagNode w && mightAssignWalker.MightAssignSomething(w.WhenExpression), mightAssignWalker); 1008var whenExpression = whenNode.WhenExpression; 1056var whenExpression = whenNode.WhenExpression; 1161if (whenClause.WhenExpression != null && whenClause.WhenExpression.ConstantValueOpt != ConstantValue.True) 1163addConditionalGoto(whenClause.WhenExpression, whenClause.Syntax, trueLabel, sectionBuilder);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
516.Any(static node => node is BoundWhenDecisionDagNode { WhenExpression: { ConstantValueOpt: null } });
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (1)
283Debug.Assert(whenNode.WhenExpression == null);