11 references to DotAwaitContext
Microsoft.CodeAnalysis.Features (11)
Completion\Providers\AbstractAwaitCompletionProvider.cs (11)
90
var
dotAwaitContext = GetDotAwaitKeywordContext(syntaxContext, cancellationToken);
91
if (!isAwaitKeywordContext && dotAwaitContext ==
DotAwaitContext
.None)
119
Contract.ThrowIfTrue(dotAwaitContext ==
DotAwaitContext
.None);
130
if (dotAwaitContext ==
DotAwaitContext
.AwaitAndConfigureAwait)
246
/// <see cref="
DotAwaitContext
.None"/>, if await can not be suggested for the expression left of the dot.
247
/// <see cref="
DotAwaitContext
.AwaitOnly"/>, if await should be suggested for the expression left of the dot, but ConfigureAwait(false) not.
248
/// <see cref="
DotAwaitContext
.AwaitAndConfigureAwait"/>, if await should be suggested for the expression left of the dot and ConfigureAwait(false).
250
private
DotAwaitContext
GetDotAwaitKeywordContext(SyntaxContext syntaxContext, CancellationToken cancellationToken)
273
?
DotAwaitContext
.AwaitAndConfigureAwait
274
:
DotAwaitContext
.AwaitOnly;
280
return
DotAwaitContext
.None;