52 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder.ValueChecks.cs (41)
1527_ => SafeContext.CallingMethod 1541{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1780return SafeContext.CallingMethod; 2293SafeContext escapeScope = SafeContext.CallingMethod; 2348SafeContext escapeScope = SafeContext.CallingMethod; 2390SafeContext escapeScope = SafeContext.CallingMethod; 3217var inferredDestinationValEscape = SafeContext.CallingMethod; 3304var inferredDestinationValEscape = SafeContext.CallingMethod; 3699return SafeContext.CallingMethod; 3705return SafeContext.CallingMethod; 3722return SafeContext.CallingMethod; 3789return SafeContext.CallingMethod; 3801return SafeContext.CallingMethod; 3856return SafeContext.CallingMethod; 3861return SafeContext.CallingMethod; 4347return SafeContext.CallingMethod; 4353return SafeContext.CallingMethod; 4359return SafeContext.CallingMethod; 4374return SafeContext.CallingMethod; 4382return SafeContext.CallingMethod; 4394return SafeContext.CallingMethod; 4397return SafeContext.CallingMethod; 4451return SafeContext.CallingMethod; 4463return SafeContext.CallingMethod; 4510return SafeContext.CallingMethod; 4564var escape = SafeContext.CallingMethod; 4697return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4698.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4743return SafeContext.CallingMethod; 4776return SafeContext.CallingMethod; 4782return SafeContext.CallingMethod; 4795? SafeContext.CallingMethod 4881var result = SafeContext.CallingMethod; 4900var result = SafeContext.CallingMethod; 4950return SafeContext.CallingMethod; 4957return SafeContext.CallingMethod; 4978SafeContext receiverEscapeScope = SafeContext.CallingMethod; 5006return SafeContext.CallingMethod; 5017var result = SafeContext.CallingMethod; 5888SafeContext scope = SafeContext.CallingMethod; 5909SafeContext 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; 516SafeContext.CallingMethod; 669return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 723: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 736return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 910valEscapeScope = SafeContext.CallingMethod; 947valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope(). 1362? SafeContext.CallingMethod 1385var elementsScope = SafeContext.CallingMethod;