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