8 references to IsInAsyncMethod
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder.ValueChecks.cs (2)
820if (valueKind == BindValueKind.AddressOf && this.IsInAsyncMethod()) 914if (valueKind == BindValueKind.AddressOf && this.IsInAsyncMethod())
Binder\Binder_Statements.cs (5)
1167if (IsInAsyncMethod()) 2915else if (IsInAsyncMethod()) 3037if (IsInAsyncMethod()) 3281if (IsInAsyncMethod()) 3352if (IsInAsyncMethod() && refKind != RefKind.None)
Binder\ForEachLoopBinder.cs (1)
506if (getEnumeratorType.IsRestrictedType() && (IsDirectlyInIterator || IsInAsyncMethod()))