48 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (39)
1485_ => SafeContext.CallingMethod 1499{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1738return SafeContext.CallingMethod; 2240SafeContext escapeScope = SafeContext.CallingMethod; 2295SafeContext escapeScope = SafeContext.CallingMethod; 2337SafeContext escapeScope = SafeContext.CallingMethod; 3189var inferredDestinationValEscape = SafeContext.CallingMethod; 3276var inferredDestinationValEscape = SafeContext.CallingMethod; 3668return SafeContext.CallingMethod; 3674return SafeContext.CallingMethod; 3691return SafeContext.CallingMethod; 3754return SafeContext.CallingMethod; 3766return SafeContext.CallingMethod; 3821return SafeContext.CallingMethod; 3826return SafeContext.CallingMethod; 4308return SafeContext.CallingMethod; 4314return SafeContext.CallingMethod; 4320return SafeContext.CallingMethod; 4335return SafeContext.CallingMethod; 4343return SafeContext.CallingMethod; 4355return SafeContext.CallingMethod; 4358return SafeContext.CallingMethod; 4405return SafeContext.CallingMethod; 4417return SafeContext.CallingMethod; 4464return SafeContext.CallingMethod; 4518var escape = SafeContext.CallingMethod; 4559SafeContext.CallingMethod; 4653return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4654.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4702return SafeContext.CallingMethod; 4793var result = SafeContext.CallingMethod; 4812var result = SafeContext.CallingMethod; 4862return SafeContext.CallingMethod; 4869return SafeContext.CallingMethod; 4890SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4918return SafeContext.CallingMethod; 4929var result = SafeContext.CallingMethod; 5792SafeContext scope = SafeContext.CallingMethod; 5813SafeContext scope = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (9)
108_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope: SafeContext.CallingMethod); 226: (SafeContext.CurrentMethod, SafeContext.CallingMethod); 269: SafeContext.CallingMethod; 515SafeContext.CallingMethod; 653return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 707: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 720return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 893valEscapeScope = SafeContext.CallingMethod; 930valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope().