40 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder.ValueChecks.cs (31)
1234
_ => SafeContext.
CallingMethod
1248
{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.
CallingMethod
,
1479
return SafeContext.
CallingMethod
;
1990
SafeContext escapeScope = SafeContext.
CallingMethod
;
2058
SafeContext escapeScope = SafeContext.
CallingMethod
;
2838
var inferredDestinationValEscape = SafeContext.
CallingMethod
;
2936
var inferredDestinationValEscape = SafeContext.
CallingMethod
;
3326
return SafeContext.
CallingMethod
;
3332
return SafeContext.
CallingMethod
;
3349
return SafeContext.
CallingMethod
;
3412
return SafeContext.
CallingMethod
;
3502
return SafeContext.
CallingMethod
;
4029
return SafeContext.
CallingMethod
;
4035
return SafeContext.
CallingMethod
;
4041
return SafeContext.
CallingMethod
;
4056
return SafeContext.
CallingMethod
;
4064
return SafeContext.
CallingMethod
;
4076
return SafeContext.
CallingMethod
;
4079
return SafeContext.
CallingMethod
;
4126
return SafeContext.
CallingMethod
;
4285
var escape = SafeContext.
CallingMethod
;
4333
SafeContext.
CallingMethod
;
4429
return (range.LeftOperandOpt is { } left ? GetValEscape(left, localScopeDepth) : SafeContext.
CallingMethod
)
4430
.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right, localScopeDepth) : SafeContext.
CallingMethod
);
4489
return SafeContext.
CallingMethod
;
4582
var result = SafeContext.
CallingMethod
;
4632
return SafeContext.
CallingMethod
;
4639
return SafeContext.
CallingMethod
;
4656
SafeContext receiverEscapeScope = SafeContext.
CallingMethod
;
4684
return SafeContext.
CallingMethod
;
4695
var result = SafeContext.
CallingMethod
;
Binder\RefSafetyAnalysis.cs (9)
101
_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope: SafeContext.
CallingMethod
);
182
: (SafeContext.CurrentMethod, SafeContext.
CallingMethod
);
220
: SafeContext.
CallingMethod
;
454
SafeContext.
CallingMethod
;
575
return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.
CallingMethod
;
625
: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.
CallingMethod
;
638
return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.
CallingMethod
;
718
valEscapeScope = SafeContext.
CallingMethod
;
740
valEscapeScope = SafeContext.
CallingMethod
; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope().