14 references to GetRefEscape
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (9)
1282
return
GetRefEscape
(fieldAccess.ReceiverOpt, scopeOfTheContainingExpression);
1804
GetRefEscape
(argument, scopeOfTheContainingExpression) :
1866
GetRefEscape
(argument, scopeOfTheContainingExpression) :
2593
?
GetRefEscape
(fromArg, scopeOfTheContainingExpression)
2980
return Math.Max(
GetRefEscape
(conditional.Consequence, scopeOfTheContainingExpression),
2981
GetRefEscape
(conditional.Alternative, scopeOfTheContainingExpression));
3007
return
GetRefEscape
(eventAccess.ReceiverOpt, scopeOfTheContainingExpression);
3136
return
GetRefEscape
(assignment.Left, scopeOfTheContainingExpression);
3836
?
GetRefEscape
(assignment.Right, scopeOfTheContainingExpression)
Binder\Binder_Statements.cs (2)
1559
var leftEscape =
GetRefEscape
(op1, _localScopeDepth);
1560
var rightEscape =
GetRefEscape
(op2, _localScopeDepth);
Binder\RefSafetyAnalysis.cs (3)
437
refEscapeScope >=
GetRefEscape
(initializer, _localScopeDepth));
452
refEscapeScope =
GetRefEscape
(initializer, _localScopeDepth);
620
valEscapeScope = receiver.GetRefKind().IsWritableReference() ?
GetRefEscape
(receiver, _localScopeDepth) : GetValEscape(receiver, _localScopeDepth);