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; 2290SafeContext escapeScope = SafeContext.CallingMethod; 2345SafeContext escapeScope = SafeContext.CallingMethod; 2387SafeContext escapeScope = SafeContext.CallingMethod; 3239var inferredDestinationValEscape = SafeContext.CallingMethod; 3326var inferredDestinationValEscape = SafeContext.CallingMethod; 3718return SafeContext.CallingMethod; 3724return SafeContext.CallingMethod; 3741return SafeContext.CallingMethod; 3804return SafeContext.CallingMethod; 3816return SafeContext.CallingMethod; 3871return SafeContext.CallingMethod; 3876return SafeContext.CallingMethod; 4358return SafeContext.CallingMethod; 4364return SafeContext.CallingMethod; 4370return SafeContext.CallingMethod; 4385return SafeContext.CallingMethod; 4393return SafeContext.CallingMethod; 4405return SafeContext.CallingMethod; 4408return SafeContext.CallingMethod; 4457return SafeContext.CallingMethod; 4469return SafeContext.CallingMethod; 4516return SafeContext.CallingMethod; 4570var escape = SafeContext.CallingMethod; 4703return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4704.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4752return SafeContext.CallingMethod; 4785return SafeContext.CallingMethod; 4791return SafeContext.CallingMethod; 4804? SafeContext.CallingMethod 4851var result = SafeContext.CallingMethod; 4870var result = SafeContext.CallingMethod; 4920return SafeContext.CallingMethod; 4927return SafeContext.CallingMethod; 4948SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4976return SafeContext.CallingMethod; 4987var result = SafeContext.CallingMethod; 5853SafeContext scope = SafeContext.CallingMethod; 5874SafeContext 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