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