1 write to WhenExpression
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5120
this.
WhenExpression
= whenExpression;
20 references to WhenExpression
Microsoft.CodeAnalysis.CSharp (20)
BoundTree\BoundDecisionDag.cs (1)
131
return p.Update(p.Bindings, p.
WhenExpression
, replacement[p.WhenTrue], (p.WhenFalse != null) ? replacement[p.WhenFalse] : null);
BoundTree\BoundDecisionDagNode.cs (4)
30
return n1.
WhenExpression
== n2.
WhenExpression
&& n1.WhenTrue == n2.WhenTrue && n1.WhenFalse == n2.WhenFalse;
47
return Hash.Combine(RuntimeHelpers.GetHashCode(n.
WhenExpression
), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.WhenTrue)));
97
builder.Append(node.
WhenExpression
is { } when
FlowAnalysis\NullableWalker_Patterns.cs (3)
705
if (w.
WhenExpression
!= null && w.
WhenExpression
.ConstantValueOpt != ConstantValue.True)
707
VisitCondition(w.
WhenExpression
);
Generated\BoundNodes.xml.Generated.cs (4)
5135
if (bindings != this.Bindings || whenExpression != this.
WhenExpression
|| whenTrue != this.WhenTrue || whenFalse != this.WhenFalse)
10304
this.Visit(node.
WhenExpression
);
11564
BoundExpression? whenExpression = (BoundExpression?)this.Visit(node.
WhenExpression
);
16127
new 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);
1008
var whenExpression = whenNode.
WhenExpression
;
1056
var whenExpression = whenNode.
WhenExpression
;
1161
if (whenClause.
WhenExpression
!= null && whenClause.
WhenExpression
.ConstantValueOpt != ConstantValue.True)
1163
addConditionalGoto(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)
283
Debug.Assert(whenNode.
WhenExpression
== null);