40 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder.ValueChecks.cs (31)
1264_ => SafeContext.CallingMethod 1278{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1509return SafeContext.CallingMethod; 2026SafeContext escapeScope = SafeContext.CallingMethod; 2095SafeContext escapeScope = SafeContext.CallingMethod; 2939var inferredDestinationValEscape = SafeContext.CallingMethod; 3039var inferredDestinationValEscape = SafeContext.CallingMethod; 3429return SafeContext.CallingMethod; 3435return SafeContext.CallingMethod; 3452return SafeContext.CallingMethod; 3515return SafeContext.CallingMethod; 3605return SafeContext.CallingMethod; 4132return SafeContext.CallingMethod; 4138return SafeContext.CallingMethod; 4144return SafeContext.CallingMethod; 4159return SafeContext.CallingMethod; 4167return SafeContext.CallingMethod; 4179return SafeContext.CallingMethod; 4182return SafeContext.CallingMethod; 4229return SafeContext.CallingMethod; 4388var escape = SafeContext.CallingMethod; 4436SafeContext.CallingMethod; 4532return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.CallingMethod) 4533.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.CallingMethod); 4592return SafeContext.CallingMethod; 4685var result = SafeContext.CallingMethod; 4735return SafeContext.CallingMethod; 4742return SafeContext.CallingMethod; 4759SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4787return SafeContext.CallingMethod; 4798var 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().