11 references to GetRefEscape
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder.ValueChecks.cs (6)
1522
return
GetRefEscape
(fieldAccess.ReceiverOpt, localScopeDepth);
3492
return
GetRefEscape
(conditional.Consequence, localScopeDepth)
3493
.Intersect(
GetRefEscape
(conditional.Alternative, localScopeDepth));
3519
return
GetRefEscape
(eventAccess.ReceiverOpt, localScopeDepth);
3682
return
GetRefEscape
(assignment.Left, localScopeDepth);
4702
?
GetRefEscape
(assignment.Right, localScopeDepth)
Binder\Binder_Statements.cs (2)
1564
var leftEscape =
GetRefEscape
(op1, _localScopeDepth);
1565
var rightEscape =
GetRefEscape
(op2, _localScopeDepth);
Binder\RefSafetyAnalysis.cs (3)
493
GetRefEscape
(initializer, _localScopeDepth).IsConvertibleTo(refEscapeScope));
508
refEscapeScope =
GetRefEscape
(initializer, _localScopeDepth);
722
valEscapeScope = receiver.GetRefKind().IsWritableReference() ?
GetRefEscape
(receiver, _localScopeDepth) : GetValEscape(receiver, _localScopeDepth);