4 references to ValidateEscape
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (1)
1598ValidateEscape(op2, leftEscape, isByRef: false, diagnostics);
Binder\RefSafetyAnalysis.cs (3)
497ValidateEscape(initializer, valEscapeScope, isByRef: false, _diagnostics); 523ValidateEscape(expr, SafeContext.ReturnOnly, node.RefKind != RefKind.None, _diagnostics); 533ValidateEscape(expr, SafeContext.ReturnOnly, isByRef: false, _diagnostics);