52 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder.ValueChecks.cs (41)
1512_ => SafeContext.CallingMethod 1526{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1765return SafeContext.CallingMethod; 2278SafeContext escapeScope = SafeContext.CallingMethod; 2333SafeContext escapeScope = SafeContext.CallingMethod; 2375SafeContext escapeScope = SafeContext.CallingMethod; 3202var inferredDestinationValEscape = SafeContext.CallingMethod; 3289var inferredDestinationValEscape = SafeContext.CallingMethod; 3684return SafeContext.CallingMethod; 3690return SafeContext.CallingMethod; 3707return SafeContext.CallingMethod; 3774return SafeContext.CallingMethod; 3786return SafeContext.CallingMethod; 3841return SafeContext.CallingMethod; 3846return SafeContext.CallingMethod; 4332return SafeContext.CallingMethod; 4338return SafeContext.CallingMethod; 4344return SafeContext.CallingMethod; 4359return SafeContext.CallingMethod; 4367return SafeContext.CallingMethod; 4379return SafeContext.CallingMethod; 4382return SafeContext.CallingMethod; 4436return SafeContext.CallingMethod; 4448return SafeContext.CallingMethod; 4495return SafeContext.CallingMethod; 4549var escape = SafeContext.CallingMethod; 4682return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4683.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4728return SafeContext.CallingMethod; 4761return SafeContext.CallingMethod; 4767return SafeContext.CallingMethod; 4780? SafeContext.CallingMethod 4866var result = SafeContext.CallingMethod; 4885var result = SafeContext.CallingMethod; 4935return SafeContext.CallingMethod; 4942return SafeContext.CallingMethod; 4963SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4991return SafeContext.CallingMethod; 5002var result = SafeContext.CallingMethod; 5873SafeContext scope = SafeContext.CallingMethod; 5894SafeContext scope = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (11)
113_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope: SafeContext.CallingMethod); 231: (SafeContext.CurrentMethod, SafeContext.CallingMethod); 274: SafeContext.CallingMethod; 521SafeContext.CallingMethod; 674return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 728: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 741return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 915valEscapeScope = SafeContext.CallingMethod; 952valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope(). 1367? SafeContext.CallingMethod 1390var elementsScope = SafeContext.CallingMethod;