40 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder.ValueChecks.cs (31)
1234_ => SafeContext.CallingMethod 1248{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1479return SafeContext.CallingMethod; 1990SafeContext escapeScope = SafeContext.CallingMethod; 2058SafeContext escapeScope = SafeContext.CallingMethod; 2838var inferredDestinationValEscape = SafeContext.CallingMethod; 2936var inferredDestinationValEscape = SafeContext.CallingMethod; 3326return SafeContext.CallingMethod; 3332return SafeContext.CallingMethod; 3349return SafeContext.CallingMethod; 3412return SafeContext.CallingMethod; 3502return SafeContext.CallingMethod; 4029return SafeContext.CallingMethod; 4035return SafeContext.CallingMethod; 4041return SafeContext.CallingMethod; 4056return SafeContext.CallingMethod; 4064return SafeContext.CallingMethod; 4076return SafeContext.CallingMethod; 4079return SafeContext.CallingMethod; 4126return SafeContext.CallingMethod; 4285var escape = SafeContext.CallingMethod; 4333SafeContext.CallingMethod; 4429return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.CallingMethod) 4430.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4489return SafeContext.CallingMethod; 4582var result = SafeContext.CallingMethod; 4632return SafeContext.CallingMethod; 4639return SafeContext.CallingMethod; 4656SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4684return SafeContext.CallingMethod; 4695var 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; 575return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 625: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 638return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 718valEscapeScope = SafeContext.CallingMethod; 740valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope().