8 references to IsInAsyncMethod
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (1)
1259
if (this.
IsInAsyncMethod
())
Binder\Binder_Invocation.cs (1)
269
if (
IsInAsyncMethod
() && Compilation.IsRuntimeAsyncEnabledIn(ContainingMemberOrLambda))
Binder\Binder_Statements.cs (5)
1171
if (IsDirectlyInIterator ||
IsInAsyncMethod
())
3062
else if (
IsInAsyncMethod
())
3184
if (
IsInAsyncMethod
())
3430
if (
IsInAsyncMethod
())
3501
if (
IsInAsyncMethod
() && refKind != RefKind.None)
Binder\ForEachLoopBinder.cs (1)
541
if (builder.InlineArraySpanType == WellKnownType.Unknown && getEnumeratorType.IsRestrictedType() && (IsDirectlyInIterator ||
IsInAsyncMethod
()))