38 references to CallingMethodScope
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder.ValueChecks.cs (32)
24
CallingMethod =
CallingMethodScope
,
878
if (escapeTo is
CallingMethodScope
or ReturnOnlyScope)
1028
CallingMethodScope
=> EscapeLevel.CallingMethod,
1038
_ =>
CallingMethodScope
1052
{ HasUnscopedRefAttribute: true, IsThis: false } =>
CallingMethodScope
,
1062
Debug.Assert(escapeTo is
CallingMethodScope
or ReturnOnlyScope);
1269
return
CallingMethodScope
;
1776
uint escapeScope =
CallingMethodScope
;
1841
uint escapeScope =
CallingMethodScope
;
2396
GetLocalScopes(local).ValEscapeScope ==
CallingMethodScope
)
2488
var inferredDestinationValEscape =
CallingMethodScope
;
2589
var inferredDestinationValEscape =
CallingMethodScope
;
2807
if (escapeTo is
CallingMethodScope
or ReturnOnlyScope)
2917
return
CallingMethodScope
;
2923
return
CallingMethodScope
;
2940
return
CallingMethodScope
;
3003
return
CallingMethodScope
;
3089
return
CallingMethodScope
;
3188
if (escapeTo is
CallingMethodScope
or ReturnOnlyScope)
3475
return
CallingMethodScope
;
3481
return
CallingMethodScope
;
3487
return
CallingMethodScope
;
3502
return
CallingMethodScope
;
3510
return
CallingMethodScope
;
3522
return
CallingMethodScope
;
3525
return
CallingMethodScope
;
3573
return
CallingMethodScope
;
3740
return Math.Max((range.LeftOperandOpt is { } left ? GetValEscape(left, scopeOfTheContainingExpression) :
CallingMethodScope
),
3741
(range.RightOperandOpt is { } right ? GetValEscape(right, scopeOfTheContainingExpression) :
CallingMethodScope
));
3792
return
CallingMethodScope
;
3829
var result =
CallingMethodScope
;
3855
var result =
CallingMethodScope
;
Binder\RefSafetyAnalysis.cs (6)
118
_analysis.AddLocalScopes(local, refEscapeScope: _analysis._localScopeDepth, valEscapeScope:
CallingMethodScope
);
258
ValidateEscape(value,
CallingMethodScope
, isByRef: field.RefKind != RefKind.None, _diagnostics);
405
CallingMethodScope
;
507
return typeExpression.Type.IsRefLikeType ? valEscape :
CallingMethodScope
;
532
: symbol.GetTypeOrReturnType().IsRefLikeType() ? valEscape :
CallingMethodScope
;
545
return member.Type.IsRefLikeType ? valEscape :
CallingMethodScope
;