40 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder.ValueChecks.cs (31)
1260_ => SafeContext.CallingMethod 1274{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1513return SafeContext.CallingMethod; 2030SafeContext escapeScope = SafeContext.CallingMethod; 2099SafeContext escapeScope = SafeContext.CallingMethod; 2943var inferredDestinationValEscape = SafeContext.CallingMethod; 3043var inferredDestinationValEscape = SafeContext.CallingMethod; 3433return SafeContext.CallingMethod; 3439return SafeContext.CallingMethod; 3456return SafeContext.CallingMethod; 3519return SafeContext.CallingMethod; 3609return SafeContext.CallingMethod; 4136return SafeContext.CallingMethod; 4142return SafeContext.CallingMethod; 4148return SafeContext.CallingMethod; 4163return SafeContext.CallingMethod; 4171return SafeContext.CallingMethod; 4183return SafeContext.CallingMethod; 4186return SafeContext.CallingMethod; 4233return SafeContext.CallingMethod; 4392var escape = SafeContext.CallingMethod; 4440SafeContext.CallingMethod; 4545return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.CallingMethod) 4546.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4605return SafeContext.CallingMethod; 4698var result = SafeContext.CallingMethod; 4748return SafeContext.CallingMethod; 4755return SafeContext.CallingMethod; 4772SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4800return SafeContext.CallingMethod; 4811var result = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (9)
101_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope: SafeContext.CallingMethod); 182: (SafeContext.CurrentMethod, SafeContext.CallingMethod); 220: SafeContext.CallingMethod; 454SafeContext.CallingMethod; 610return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 664: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 677return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 757valEscapeScope = SafeContext.CallingMethod; 779valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope().