47 references to CallingMethodScope
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder.ValueChecks.cs (37)
21
CallingMethod =
CallingMethodScope
,
1072
if (escapeTo is
CallingMethodScope
or ReturnOnlyScope)
1220
CallingMethodScope
=> EscapeLevel.CallingMethod,
1230
_ =>
CallingMethodScope
1244
{ HasUnscopedRefAttribute: true, IsThis: false } =>
CallingMethodScope
,
1460
return
CallingMethodScope
;
1971
uint escapeScope =
CallingMethodScope
;
2039
uint escapeScope =
CallingMethodScope
;
2729
GetLocalScopes(local).ValEscapeScope ==
CallingMethodScope
)
2819
var inferredDestinationValEscape =
CallingMethodScope
;
2922
var inferredDestinationValEscape =
CallingMethodScope
;
3198
if (escapeTo is
CallingMethodScope
or ReturnOnlyScope)
3312
return
CallingMethodScope
;
3318
return
CallingMethodScope
;
3335
return
CallingMethodScope
;
3398
return
CallingMethodScope
;
3488
return
CallingMethodScope
;
3655
if (escapeTo is
CallingMethodScope
or ReturnOnlyScope)
4015
return
CallingMethodScope
;
4021
return
CallingMethodScope
;
4027
return
CallingMethodScope
;
4042
return
CallingMethodScope
;
4050
return
CallingMethodScope
;
4062
return
CallingMethodScope
;
4065
return
CallingMethodScope
;
4113
return
CallingMethodScope
;
4272
var escape =
CallingMethodScope
;
4320
CallingMethodScope
;
4416
return Math.Max((range.LeftOperandOpt is { } left ? GetValEscape(left, scopeOfTheContainingExpression) :
CallingMethodScope
),
4417
(range.RightOperandOpt is { } right ? GetValEscape(right, scopeOfTheContainingExpression) :
CallingMethodScope
));
4476
return
CallingMethodScope
;
4569
var result =
CallingMethodScope
;
4613
return
CallingMethodScope
;
4620
return
CallingMethodScope
;
4637
uint receiverEscapeScope =
CallingMethodScope
;
4665
return
CallingMethodScope
;
4676
var result =
CallingMethodScope
;
Binder\RefSafetyAnalysis.cs (10)
103
_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope:
CallingMethodScope
);
184
: (
CallingMethodScope
,
CallingMethodScope
);
222
:
CallingMethodScope
;
463
CallingMethodScope
;
584
return typeExpression.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape :
CallingMethodScope
;
609
: symbol.GetTypeOrReturnType().IsRefLikeOrAllowsRefLikeType() ? valEscape :
CallingMethodScope
;
622
return member.Type.IsRefLikeOrAllowsRefLikeType() ? valEscape :
CallingMethodScope
;
701
valEscapeScope =
CallingMethodScope
;
723
valEscapeScope =
CallingMethodScope
; // Consider skipping this placeholder entirely since CallingMethodScope is the fallback in GetPlaceholderScope().