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; 4150return SafeContext.CallingMethod; 4156return SafeContext.CallingMethod; 4162return SafeContext.CallingMethod; 4177return SafeContext.CallingMethod; 4185return SafeContext.CallingMethod; 4197return SafeContext.CallingMethod; 4200return SafeContext.CallingMethod; 4247return SafeContext.CallingMethod; 4406var escape = SafeContext.CallingMethod; 4454SafeContext.CallingMethod; 4584return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.CallingMethod) 4585.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4644return SafeContext.CallingMethod; 4737var result = SafeContext.CallingMethod; 4787return SafeContext.CallingMethod; 4794return SafeContext.CallingMethod; 4811SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4839return SafeContext.CallingMethod; 4850var 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().