16 references to GetRefEscape
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (11)
1747
return
GetRefEscape
(fieldAccess.ReceiverOpt, localScopeDepth);
2260
(true, true) =>
GetRefEscape
(argument, localScopeDepth),
2316
GetRefEscape
(argument, localScopeDepth) :
2345
?
GetRefEscape
(argument, localScopeDepth)
3280
?
GetRefEscape
(fromArg, localScopeDepth)
3731
return
GetRefEscape
(conditional.Consequence, localScopeDepth)
3732
.Intersect(
GetRefEscape
(conditional.Alternative, localScopeDepth));
3758
return
GetRefEscape
(eventAccess.ReceiverOpt, localScopeDepth);
3879
return
GetRefEscape
(assignment.Left, localScopeDepth);
4829
?
GetRefEscape
(assignment.Right, localScopeDepth)
4901
?
GetRefEscape
(escapeValue.Argument, localScopeDepth)
Binder\Binder_Statements.cs (2)
1564
var leftEscape =
GetRefEscape
(op1, _localScopeDepth);
1565
var rightEscape =
GetRefEscape
(op2, _localScopeDepth);
Binder\RefSafetyAnalysis.cs (3)
534
GetRefEscape
(initializer, _localScopeDepth).IsConvertibleTo(refEscapeScope));
549
refEscapeScope =
GetRefEscape
(initializer, _localScopeDepth);
850
valEscapeScope = receiver.GetRefKind().IsWritableReference() ?
GetRefEscape
(receiver, _localScopeDepth) : GetValEscape(receiver, _localScopeDepth);