44 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder.ValueChecks.cs (35)
1481_ => SafeContext.CallingMethod 1495{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1734return SafeContext.CallingMethod; 2238SafeContext escapeScope = SafeContext.CallingMethod; 2294SafeContext escapeScope = SafeContext.CallingMethod; 2337SafeContext escapeScope = SafeContext.CallingMethod; 3188var inferredDestinationValEscape = SafeContext.CallingMethod; 3276var inferredDestinationValEscape = SafeContext.CallingMethod; 3668return SafeContext.CallingMethod; 3674return SafeContext.CallingMethod; 3691return SafeContext.CallingMethod; 3754return SafeContext.CallingMethod; 3820return SafeContext.CallingMethod; 4301return SafeContext.CallingMethod; 4307return SafeContext.CallingMethod; 4313return SafeContext.CallingMethod; 4328return SafeContext.CallingMethod; 4336return SafeContext.CallingMethod; 4348return SafeContext.CallingMethod; 4351return SafeContext.CallingMethod; 4398return SafeContext.CallingMethod; 4509var escape = SafeContext.CallingMethod; 4551SafeContext.CallingMethod; 4651return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.CallingMethod) 4652.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4701return SafeContext.CallingMethod; 4792var result = SafeContext.CallingMethod; 4812var result = SafeContext.CallingMethod; 4862return SafeContext.CallingMethod; 4869return SafeContext.CallingMethod; 4890SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4918return SafeContext.CallingMethod; 4929var result = SafeContext.CallingMethod; 5798SafeContext scope = SafeContext.CallingMethod; 5819SafeContext scope = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (9)
102_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope: SafeContext.CallingMethod); 218: (SafeContext.CurrentMethod, SafeContext.CallingMethod); 261: SafeContext.CallingMethod; 495SafeContext.CallingMethod; 634return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 688: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 701return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 846valEscapeScope = SafeContext.CallingMethod; 883valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope().