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, 3355return SafeContext.CurrentMethod; 4096return SafeContext.CurrentMethod; 4332SafeContext.CurrentMethod : 4799if (!SafeContext.CurrentMethod.IsConvertibleTo(escapeTo)) 5108if (HasLocalScope((BoundCollectionExpression)conversion.Operand) && !SafeContext.CurrentMethod.IsConvertibleTo(escapeTo))
Binder\RefSafetyAnalysis.cs (3)
86_localScopeDepth = SafeContext.CurrentMethod.Wider(); 182: (SafeContext.CurrentMethod, SafeContext.CallingMethod); 451SafeContext.CurrentMethod;