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