7 references to IsInAsyncMethod
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder.ValueChecks.cs (1)
1031
if (this.
IsInAsyncMethod
())
Binder\Binder_Statements.cs (5)
1164
if (IsDirectlyInIterator ||
IsInAsyncMethod
())
3013
else if (
IsInAsyncMethod
())
3135
if (
IsInAsyncMethod
())
3379
if (
IsInAsyncMethod
())
3450
if (
IsInAsyncMethod
() && refKind != RefKind.None)
Binder\ForEachLoopBinder.cs (1)
528
if (builder.InlineArraySpanType == WellKnownType.Unknown && getEnumeratorType.IsRestrictedType() && (IsDirectlyInIterator ||
IsInAsyncMethod
()))