11 references to DotAwaitContext
Microsoft.CodeAnalysis.Features (11)
Completion\Providers\AbstractAwaitCompletionProvider.cs (11)
93
var
dotAwaitContext = GetDotAwaitKeywordContext(syntaxContext, cancellationToken);
94
if (!isAwaitKeywordContext && dotAwaitContext ==
DotAwaitContext
.None)
122
Contract.ThrowIfTrue(dotAwaitContext ==
DotAwaitContext
.None);
133
if (dotAwaitContext ==
DotAwaitContext
.AwaitAndConfigureAwait)
249
/// <see cref="
DotAwaitContext
.None"/>, if await can not be suggested for the expression left of the dot.
250
/// <see cref="
DotAwaitContext
.AwaitOnly"/>, if await should be suggested for the expression left of the dot, but ConfigureAwait(false) not.
251
/// <see cref="
DotAwaitContext
.AwaitAndConfigureAwait"/>, if await should be suggested for the expression left of the dot and ConfigureAwait(false).
253
private
DotAwaitContext
GetDotAwaitKeywordContext(SyntaxContext syntaxContext, CancellationToken cancellationToken)
276
?
DotAwaitContext
.AwaitAndConfigureAwait
277
:
DotAwaitContext
.AwaitOnly;
283
return
DotAwaitContext
.None;