52 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder.ValueChecks.cs (41)
1528_ => SafeContext.CallingMethod 1542{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.CallingMethod, 1781return SafeContext.CallingMethod; 2294SafeContext escapeScope = SafeContext.CallingMethod; 2349SafeContext escapeScope = SafeContext.CallingMethod; 2391SafeContext escapeScope = SafeContext.CallingMethod; 3218var inferredDestinationValEscape = SafeContext.CallingMethod; 3305var inferredDestinationValEscape = SafeContext.CallingMethod; 3700return SafeContext.CallingMethod; 3706return SafeContext.CallingMethod; 3723return SafeContext.CallingMethod; 3790return SafeContext.CallingMethod; 3802return SafeContext.CallingMethod; 3857return SafeContext.CallingMethod; 3862return SafeContext.CallingMethod; 4348return SafeContext.CallingMethod; 4354return SafeContext.CallingMethod; 4360return SafeContext.CallingMethod; 4375return SafeContext.CallingMethod; 4383return SafeContext.CallingMethod; 4395return SafeContext.CallingMethod; 4398return SafeContext.CallingMethod; 4452return SafeContext.CallingMethod; 4464return SafeContext.CallingMethod; 4511return SafeContext.CallingMethod; 4565var escape = SafeContext.CallingMethod; 4698return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.CallingMethod) 4699.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.CallingMethod); 4744return SafeContext.CallingMethod; 4777return SafeContext.CallingMethod; 4783return SafeContext.CallingMethod; 4796? SafeContext.CallingMethod 4882var result = SafeContext.CallingMethod; 4901var result = SafeContext.CallingMethod; 4951return SafeContext.CallingMethod; 4958return SafeContext.CallingMethod; 4979SafeContext receiverEscapeScope = SafeContext.CallingMethod; 5007return SafeContext.CallingMethod; 5018var result = SafeContext.CallingMethod; 5889SafeContext scope = SafeContext.CallingMethod; 5910SafeContext scope = SafeContext.CallingMethod;
Binder\RefSafetyAnalysis.cs (11)
113_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope: SafeContext.CallingMethod); 231: (SafeContext.CurrentMethod, SafeContext.CallingMethod); 274: SafeContext.CallingMethod; 521SafeContext.CallingMethod; 674return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 728: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 741return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.CallingMethod; 915valEscapeScope = SafeContext.CallingMethod; 952valEscapeScope = SafeContext.CallingMethod; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope(). 1367? SafeContext.CallingMethod 1390var elementsScope = SafeContext.CallingMethod;