48 references to CallingMethod
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (39)
1485
_ => SafeContext.
CallingMethod
1499
{ HasUnscopedRefAttribute: true, UseUpdatedEscapeRules: true, IsThis: false } => SafeContext.
CallingMethod
,
1738
return SafeContext.
CallingMethod
;
2240
SafeContext escapeScope = SafeContext.
CallingMethod
;
2295
SafeContext escapeScope = SafeContext.
CallingMethod
;
2337
SafeContext escapeScope = SafeContext.
CallingMethod
;
3189
var inferredDestinationValEscape = SafeContext.
CallingMethod
;
3276
var inferredDestinationValEscape = SafeContext.
CallingMethod
;
3668
return SafeContext.
CallingMethod
;
3674
return SafeContext.
CallingMethod
;
3691
return SafeContext.
CallingMethod
;
3754
return SafeContext.
CallingMethod
;
3766
return SafeContext.
CallingMethod
;
3821
return SafeContext.
CallingMethod
;
3826
return SafeContext.
CallingMethod
;
4308
return SafeContext.
CallingMethod
;
4314
return SafeContext.
CallingMethod
;
4320
return SafeContext.
CallingMethod
;
4335
return SafeContext.
CallingMethod
;
4343
return SafeContext.
CallingMethod
;
4355
return SafeContext.
CallingMethod
;
4358
return SafeContext.
CallingMethod
;
4405
return SafeContext.
CallingMethod
;
4417
return SafeContext.
CallingMethod
;
4464
return SafeContext.
CallingMethod
;
4518
var escape = SafeContext.
CallingMethod
;
4559
SafeContext.
CallingMethod
;
4653
return (range.LeftOperandOpt is { } left ? GetValEscape(left) : SafeContext.
CallingMethod
)
4654
.Intersect(range.RightOperandOpt is { } right ? GetValEscape(right) : SafeContext.
CallingMethod
);
4702
return SafeContext.
CallingMethod
;
4793
var result = SafeContext.
CallingMethod
;
4812
var result = SafeContext.
CallingMethod
;
4862
return SafeContext.
CallingMethod
;
4869
return SafeContext.
CallingMethod
;
4890
SafeContext receiverEscapeScope = SafeContext.
CallingMethod
;
4918
return SafeContext.
CallingMethod
;
4929
var result = SafeContext.
CallingMethod
;
5792
SafeContext scope = SafeContext.
CallingMethod
;
5813
SafeContext 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
;
515
SafeContext.
CallingMethod
;
653
return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.
CallingMethod
;
707
: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.
CallingMethod
;
720
return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape : SafeContext.
CallingMethod
;
893
valEscapeScope = SafeContext.
CallingMethod
;
930
valEscapeScope = SafeContext.
CallingMethod
; // Consider skipping this placeholder entirely since SafeContext.CallingMethod is the fallback in GetPlaceholderScope().