52 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder.ValueChecks.cs (41)
1531_ => SafeContext.CallingMethod 1545{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1784return SafeContext.CallingMethod; 2296SafeContext escapeScope = SafeContext.CallingMethod; 2351SafeContext escapeScope = SafeContext.CallingMethod; 2393SafeContext escapeScope = SafeContext.CallingMethod; 3245var inferredDestinationValEscape = SafeContext.CallingMethod; 3332var inferredDestinationValEscape = SafeContext.CallingMethod; 3724return SafeContext.CallingMethod; 3730return SafeContext.CallingMethod; 3747return SafeContext.CallingMethod; 3810return SafeContext.CallingMethod; 3822return SafeContext.CallingMethod; 3877return SafeContext.CallingMethod; 3882return SafeContext.CallingMethod; 4364return SafeContext.CallingMethod; 4370return SafeContext.CallingMethod; 4376return SafeContext.CallingMethod; 4391return SafeContext.CallingMethod; 4399return SafeContext.CallingMethod; 4411return SafeContext.CallingMethod; 4414return SafeContext.CallingMethod; 4464return SafeContext.CallingMethod; 4476return SafeContext.CallingMethod; 4523return SafeContext.CallingMethod; 4577var escape = SafeContext.CallingMethod; 4710return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4711.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4756return SafeContext.CallingMethod; 4789return SafeContext.CallingMethod; 4795return SafeContext.CallingMethod; 4808? SafeContext.CallingMethod 4894var result = SafeContext.CallingMethod; 4913var result = SafeContext.CallingMethod; 4963return SafeContext.CallingMethod; 4970return SafeContext.CallingMethod; 4991SafeContext receiverEscapeScope = SafeContext.CallingMethod; 5019return SafeContext.CallingMethod; 5030var result = SafeContext.CallingMethod; 5897SafeContext scope = SafeContext.CallingMethod; 5918SafeContext scope = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (11)
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(). 1332? SafeContext.CallingMethod 1355var elementsScope = SafeContext.CallingMethod;