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