8 references to IsInAsyncMethod
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (1)
1255if (this.IsInAsyncMethod())
Binder\Binder_Invocation.cs (1)
268if (IsInAsyncMethod() && Compilation.IsRuntimeAsyncEnabledIn(ContainingMemberOrLambda))
Binder\Binder_Statements.cs (5)
1166if (IsDirectlyInIterator || IsInAsyncMethod()) 3053else if (IsInAsyncMethod()) 3175if (IsInAsyncMethod()) 3421if (IsInAsyncMethod()) 3492if (IsInAsyncMethod() && refKind != RefKind.None)
Binder\ForEachLoopBinder.cs (1)
542if (builder.InlineArraySpanType == WellKnownType.Unknown && getEnumeratorType.IsRestrictedType() && (IsDirectlyInIterator || IsInAsyncMethod()))