51 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (51)
Binder\Binder.ValueChecks.cs (41)
1530_ => SafeContext.CallingMethod 1544{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1783return SafeContext.CallingMethod; 2285SafeContext escapeScope = SafeContext.CallingMethod; 2340SafeContext escapeScope = SafeContext.CallingMethod; 2382SafeContext escapeScope = SafeContext.CallingMethod; 3234var inferredDestinationValEscape = SafeContext.CallingMethod; 3321var inferredDestinationValEscape = SafeContext.CallingMethod; 3713return SafeContext.CallingMethod; 3719return SafeContext.CallingMethod; 3736return SafeContext.CallingMethod; 3799return SafeContext.CallingMethod; 3811return SafeContext.CallingMethod; 3866return SafeContext.CallingMethod; 3871return SafeContext.CallingMethod; 4353return SafeContext.CallingMethod; 4359return SafeContext.CallingMethod; 4365return SafeContext.CallingMethod; 4380return SafeContext.CallingMethod; 4388return SafeContext.CallingMethod; 4400return SafeContext.CallingMethod; 4403return SafeContext.CallingMethod; 4452return SafeContext.CallingMethod; 4464return SafeContext.CallingMethod; 4511return SafeContext.CallingMethod; 4565var escape = SafeContext.CallingMethod; 4698return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4699.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4747return SafeContext.CallingMethod; 4780return SafeContext.CallingMethod; 4786return SafeContext.CallingMethod; 4799? SafeContext.CallingMethod 4846var result = SafeContext.CallingMethod; 4865var result = SafeContext.CallingMethod; 4915return SafeContext.CallingMethod; 4922return SafeContext.CallingMethod; 4943SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4971return SafeContext.CallingMethod; 4982var result = SafeContext.CallingMethod; 5848SafeContext scope = SafeContext.CallingMethod; 5869SafeContext scope = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (10)
108_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope: SafeContext.CallingMethod); 226: (SafeContext.CurrentMethod, SafeContext.CallingMethod); 269: SafeContext.CallingMethod; 515SafeContext.CallingMethod; 653return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 707: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 720return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 893valEscapeScope = SafeContext.CallingMethod; 930valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope(). 1323? SafeContext.CallingMethod