48 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (39)
1483_ => SafeContext.CallingMethod 1497{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1736return SafeContext.CallingMethod; 2240SafeContext escapeScope = SafeContext.CallingMethod; 2296SafeContext escapeScope = SafeContext.CallingMethod; 2339SafeContext escapeScope = SafeContext.CallingMethod; 3196var inferredDestinationValEscape = SafeContext.CallingMethod; 3284var inferredDestinationValEscape = SafeContext.CallingMethod; 3676return SafeContext.CallingMethod; 3682return SafeContext.CallingMethod; 3699return SafeContext.CallingMethod; 3762return SafeContext.CallingMethod; 3774return SafeContext.CallingMethod; 3833return SafeContext.CallingMethod; 3838return SafeContext.CallingMethod; 4329return SafeContext.CallingMethod; 4335return SafeContext.CallingMethod; 4341return SafeContext.CallingMethod; 4356return SafeContext.CallingMethod; 4364return SafeContext.CallingMethod; 4376return SafeContext.CallingMethod; 4379return SafeContext.CallingMethod; 4426return SafeContext.CallingMethod; 4438return SafeContext.CallingMethod; 4489return SafeContext.CallingMethod; 4547var escape = SafeContext.CallingMethod; 4589SafeContext.CallingMethod; 4689return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.CallingMethod) 4690.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4739return SafeContext.CallingMethod; 4830var result = SafeContext.CallingMethod; 4850var result = SafeContext.CallingMethod; 4900return SafeContext.CallingMethod; 4907return SafeContext.CallingMethod; 4928SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4956return SafeContext.CallingMethod; 4967var result = SafeContext.CallingMethod; 5846SafeContext scope = SafeContext.CallingMethod; 5867SafeContext 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().