11 references to CurrentMethod
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder.ValueChecks.cs (8)
1232
{ EffectiveScope: ScopedKind.ScopedValue } => SafeContext.
CurrentMethod
,
1245
{ RefKind: RefKind.None } => SafeContext.
CurrentMethod
,
1246
{ EffectiveScope: ScopedKind.ScopedRef } => SafeContext.
CurrentMethod
,
3355
return SafeContext.
CurrentMethod
;
4096
return SafeContext.
CurrentMethod
;
4332
SafeContext.
CurrentMethod
:
4799
if (!SafeContext.
CurrentMethod
.IsConvertibleTo(escapeTo))
5108
if (HasLocalScope((BoundCollectionExpression)conversion.Operand) && !SafeContext.
CurrentMethod
.IsConvertibleTo(escapeTo))
Binder\RefSafetyAnalysis.cs (3)
86
_localScopeDepth = SafeContext.
CurrentMethod
.Wider();
182
: (SafeContext.
CurrentMethod
, SafeContext.CallingMethod);
451
SafeContext.
CurrentMethod
;