11 references to GetRefEscape
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder.ValueChecks.cs (6)
1473
return
GetRefEscape
(fieldAccess.ReceiverOpt, scopeOfTheContainingExpression);
3375
return Math.Max(
GetRefEscape
(conditional.Consequence, scopeOfTheContainingExpression),
3376
GetRefEscape
(conditional.Alternative, scopeOfTheContainingExpression));
3402
return
GetRefEscape
(eventAccess.ReceiverOpt, scopeOfTheContainingExpression);
3565
return
GetRefEscape
(assignment.Left, scopeOfTheContainingExpression);
4586
?
GetRefEscape
(assignment.Right, scopeOfTheContainingExpression)
Binder\Binder_Statements.cs (2)
1549
var leftEscape =
GetRefEscape
(op1, _localScopeDepth);
1550
var rightEscape =
GetRefEscape
(op2, _localScopeDepth);
Binder\RefSafetyAnalysis.cs (3)
502
refEscapeScope >=
GetRefEscape
(initializer, _localScopeDepth));
517
refEscapeScope =
GetRefEscape
(initializer, _localScopeDepth);
705
valEscapeScope = receiver.GetRefKind().IsWritableReference() ?
GetRefEscape
(receiver, _localScopeDepth) : GetValEscape(receiver, _localScopeDepth);