Adjust method name per feedback.

上级 26701e9e
......@@ -3007,7 +3007,7 @@ public override BoundNode VisitNullCoalescingAssignmentOperator(BoundNullCoalesc
VisitReceiverAfterCall(left.ReceiverOpt, readMethod);
var savedState = this.State.Clone();
VisitUnassignedLeftOfNullCoalescingAssignment(node);
AdjustStateForNullCoalescingAssignmentNonNullCase(node);
leftState = this.State.Clone();
SetState(savedState);
VisitAssignmentOfNullCoalescingAssignment(node, left);
......@@ -3016,7 +3016,7 @@ public override BoundNode VisitNullCoalescingAssignmentOperator(BoundNullCoalesc
{
VisitRvalue(node.LeftOperand, isKnownToBeAnLvalue: true);
var savedState = this.State.Clone();
VisitUnassignedLeftOfNullCoalescingAssignment(node);
AdjustStateForNullCoalescingAssignmentNonNullCase(node);
leftState = this.State.Clone();
SetState(savedState);
VisitAssignmentOfNullCoalescingAssignment(node, propertyAccessOpt: null);
......@@ -3053,7 +3053,7 @@ public override BoundNode VisitReadOnlySpanFromArray(BoundReadOnlySpanFromArray
/// This visitor represents just the non-assignment part of the null coalescing assignment
/// operator (when the left operand is non-null).
/// </summary>
protected virtual void VisitUnassignedLeftOfNullCoalescingAssignment(BoundNullCoalescingAssignmentOperator node)
protected virtual void AdjustStateForNullCoalescingAssignmentNonNullCase(BoundNullCoalescingAssignmentOperator node)
{
}
......
......@@ -2069,7 +2069,7 @@ public override BoundNode VisitDynamicObjectInitializerMember(BoundDynamicObject
Assign(node.LeftOperand, node.RightOperand);
}
protected override void VisitUnassignedLeftOfNullCoalescingAssignment(BoundNullCoalescingAssignmentOperator node)
protected override void AdjustStateForNullCoalescingAssignmentNonNullCase(BoundNullCoalescingAssignmentOperator node)
{
// For the purposes of definite assignment in try/finally, we need to treat the left as having been assigned
// in the left-side state. If LeftOperand was not definitely assigned before this call, we will have already
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册