48 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (39)
1513_ => SafeContext.CallingMethod 1527{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1766return SafeContext.CallingMethod; 2268SafeContext escapeScope = SafeContext.CallingMethod; 2323SafeContext escapeScope = SafeContext.CallingMethod; 2365SafeContext escapeScope = SafeContext.CallingMethod; 3217var inferredDestinationValEscape = SafeContext.CallingMethod; 3304var inferredDestinationValEscape = SafeContext.CallingMethod; 3696return SafeContext.CallingMethod; 3702return SafeContext.CallingMethod; 3719return SafeContext.CallingMethod; 3782return SafeContext.CallingMethod; 3794return SafeContext.CallingMethod; 3849return SafeContext.CallingMethod; 3854return SafeContext.CallingMethod; 4336return SafeContext.CallingMethod; 4342return SafeContext.CallingMethod; 4348return SafeContext.CallingMethod; 4363return SafeContext.CallingMethod; 4371return SafeContext.CallingMethod; 4383return SafeContext.CallingMethod; 4386return SafeContext.CallingMethod; 4433return SafeContext.CallingMethod; 4445return SafeContext.CallingMethod; 4492return SafeContext.CallingMethod; 4546var escape = SafeContext.CallingMethod; 4587SafeContext.CallingMethod; 4681return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4682.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4730return SafeContext.CallingMethod; 4821var result = SafeContext.CallingMethod; 4840var result = SafeContext.CallingMethod; 4890return SafeContext.CallingMethod; 4897return SafeContext.CallingMethod; 4918SafeContext receiverEscapeScope = SafeContext.CallingMethod; 4946return SafeContext.CallingMethod; 4957var result = SafeContext.CallingMethod; 5820SafeContext scope = SafeContext.CallingMethod; 5841SafeContext scope = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (9)
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().