48 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (39)
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; 3194var inferredDestinationValEscape = SafeContext.CallingMethod; 3282var inferredDestinationValEscape = SafeContext.CallingMethod; 3674return SafeContext.CallingMethod; 3680return SafeContext.CallingMethod; 3697return SafeContext.CallingMethod; 3760return SafeContext.CallingMethod; 3772return SafeContext.CallingMethod; 3831return SafeContext.CallingMethod; 3836return SafeContext.CallingMethod; 4327return SafeContext.CallingMethod; 4333return SafeContext.CallingMethod; 4339return SafeContext.CallingMethod; 4354return SafeContext.CallingMethod; 4362return SafeContext.CallingMethod; 4374return SafeContext.CallingMethod; 4377return SafeContext.CallingMethod; 4424return SafeContext.CallingMethod; 4436return SafeContext.CallingMethod; 4487return SafeContext.CallingMethod; 4545var escape = SafeContext.CallingMethod; 4587SafeContext.CallingMethod; 4687return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.CallingMethod) 4688.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4737return SafeContext.CallingMethod; 4828var result = SafeContext.CallingMethod; 4848var result = SafeContext.CallingMethod; 4898return SafeContext.CallingMethod; 4905return SafeContext.CallingMethod; 4926SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4954return SafeContext.CallingMethod; 4965var result = SafeContext.CallingMethod; 5844SafeContext scope = SafeContext.CallingMethod; 5865SafeContext 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; 875valEscapeScope = SafeContext.CallingMethod; 912valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope().