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; 2295SafeContext escapeScope = SafeContext.CallingMethod; 2350SafeContext escapeScope = SafeContext.CallingMethod; 2392SafeContext escapeScope = SafeContext.CallingMethod; 3244var inferredDestinationValEscape = SafeContext.CallingMethod; 3331var inferredDestinationValEscape = SafeContext.CallingMethod; 3723return SafeContext.CallingMethod; 3729return SafeContext.CallingMethod; 3746return SafeContext.CallingMethod; 3809return SafeContext.CallingMethod; 3821return SafeContext.CallingMethod; 3876return SafeContext.CallingMethod; 3881return SafeContext.CallingMethod; 4363return SafeContext.CallingMethod; 4369return SafeContext.CallingMethod; 4375return SafeContext.CallingMethod; 4390return SafeContext.CallingMethod; 4398return SafeContext.CallingMethod; 4410return SafeContext.CallingMethod; 4413return SafeContext.CallingMethod; 4462return SafeContext.CallingMethod; 4474return SafeContext.CallingMethod; 4521return SafeContext.CallingMethod; 4575var escape = SafeContext.CallingMethod; 4708return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4709.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4757return SafeContext.CallingMethod; 4790return SafeContext.CallingMethod; 4796return SafeContext.CallingMethod; 4809? SafeContext.CallingMethod 4856var result = SafeContext.CallingMethod; 4875var result = SafeContext.CallingMethod; 4925return SafeContext.CallingMethod; 4932return SafeContext.CallingMethod; 4953SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4981return SafeContext.CallingMethod; 4992var result = SafeContext.CallingMethod; 5858SafeContext scope = SafeContext.CallingMethod; 5879SafeContext 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