7 references to IsInAsyncMethod
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder.ValueChecks.cs (1)
1008
if (this.
IsInAsyncMethod
())
Binder\Binder_Statements.cs (5)
1164
if (IsDirectlyInIterator ||
IsInAsyncMethod
())
3016
else if (
IsInAsyncMethod
())
3138
if (
IsInAsyncMethod
())
3382
if (
IsInAsyncMethod
())
3453
if (
IsInAsyncMethod
() && refKind != RefKind.None)
Binder\ForEachLoopBinder.cs (1)
528
if (builder.InlineArraySpanType == WellKnownType.Unknown && getEnumeratorType.IsRestrictedType() && (IsDirectlyInIterator ||
IsInAsyncMethod
()))