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