125 references to AwaitKeyword
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (13)
5719
if (this.IsInAsync && identifierToken.ContextualKind == SyntaxKind.
AwaitKeyword
)
7431
if (this.CurrentToken.ContextualKind is SyntaxKind.AsyncKeyword or SyntaxKind.
AwaitKeyword
or SyntaxKind.FromKeyword)
8058
bool beginsWithAwait = this.CurrentToken.ContextualKind == SyntaxKind.
AwaitKeyword
;
8094
if (this.CurrentToken.ContextualKind == SyntaxKind.
AwaitKeyword
&&
8097
return this.ParseForEachStatement(attributes, this.EatContextualToken(SyntaxKind.
AwaitKeyword
));
8104
return this.ParseUsingStatement(attributes, this.EatContextualToken(SyntaxKind.
AwaitKeyword
));
8135
=> CurrentToken.ContextualKind == SyntaxKind.
AwaitKeyword
&& PeekToken(1).Kind == SyntaxKind.UsingKeyword;
9399
if (this.IsInAsync && this.CurrentToken.ContextualKind == SyntaxKind.
AwaitKeyword
)
10017
awaitKeyword = this.EatContextualToken(SyntaxKind.
AwaitKeyword
);
10443
forceLocalFunc = id.ContextualKind != SyntaxKind.
AwaitKeyword
;
10874
return (this.IsScript || this.IsInAsync) && this.CurrentToken.ContextualKind == SyntaxKind.
AwaitKeyword
;
10879
if (this.CurrentToken.ContextualKind == SyntaxKind.
AwaitKeyword
)
10992
this.EatContextualToken(SyntaxKind.
AwaitKeyword
),
Syntax\SyntaxFacts.cs (3)
552
case LocalDeclarationStatementSyntax local when local.AwaitKeyword.IsKind(SyntaxKind.
AwaitKeyword
):
553
case CommonForEachStatementSyntax @foreach when @foreach.AwaitKeyword.IsKind(SyntaxKind.
AwaitKeyword
):
554
case UsingStatementSyntax @using when @using.AwaitKeyword.IsKind(SyntaxKind.
AwaitKeyword
):
Syntax\SyntaxKindFacts.cs (3)
1215
case SyntaxKind.
AwaitKeyword
:
1325
return SyntaxKind.
AwaitKeyword
;
1767
case SyntaxKind.
AwaitKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
14
public static readonly SyntaxToken AwaitKeyword = Token(SyntaxKind.
AwaitKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
136
public int AwaitKeyword => (int)SyntaxKind.
AwaitKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (2)
454
if (targetToken.IsKind(SyntaxKind.
AwaitKeyword
))
466
&& targetToken.HasMatchingText(SyntaxKind.
AwaitKeyword
))
Microsoft.CodeAnalysis.CSharp.Features (5)
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
56
SyntaxKind.
AwaitKeyword
or
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (2)
30
=> tokens.Any(static t => t.Kind() is SyntaxKind.
AwaitKeyword
or SyntaxKind.AsyncKeyword);
98
if (mod.Kind() is SyntaxKind.AsyncKeyword or SyntaxKind.
AwaitKeyword
)
Snippets\CSharpForEachLoopSnippetProvider.cs (2)
46
if (token is { RawKind: (int)SyntaxKind.
AwaitKeyword
, Parent: ExpressionSyntax { Parent: ExpressionStatementSyntax } } ||
68
var isAsync = syntaxContext.TargetToken is { RawKind: (int)SyntaxKind.
AwaitKeyword
} or { RawKind: (int)SyntaxKind.IdentifierToken, ValueText: "await" };
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (90)
Generated\Syntax.Test.xml.Generated.cs (4)
83
=> InternalSyntaxFactory.AwaitExpression(InternalSyntaxFactory.Token(SyntaxKind.
AwaitKeyword
), GenerateIdentifierName());
1013
Assert.Equal(SyntaxKind.
AwaitKeyword
, node.AwaitKeyword.Kind);
10299
=> SyntaxFactory.AwaitExpression(SyntaxFactory.Token(SyntaxKind.
AwaitKeyword
), GenerateIdentifierName());
11229
Assert.Equal(SyntaxKind.
AwaitKeyword
, node.AwaitKeyword.Kind());
Parsing\AsyncStreamsParsingTests.cs (5)
71
N(SyntaxKind.
AwaitKeyword
);
149
N(SyntaxKind.
AwaitKeyword
);
312
N(SyntaxKind.
AwaitKeyword
);
415
N(SyntaxKind.
AwaitKeyword
);
505
N(SyntaxKind.
AwaitKeyword
);
Parsing\AwaitParsingTests.cs (52)
67
N(SyntaxKind.
AwaitKeyword
);
131
N(SyntaxKind.
AwaitKeyword
);
196
N(SyntaxKind.
AwaitKeyword
);
274
N(SyntaxKind.
AwaitKeyword
);
383
N(SyntaxKind.
AwaitKeyword
);
400
N(SyntaxKind.
AwaitKeyword
);
447
N(SyntaxKind.
AwaitKeyword
);
491
N(SyntaxKind.
AwaitKeyword
);
535
N(SyntaxKind.
AwaitKeyword
);
569
N(SyntaxKind.
AwaitKeyword
);
597
N(SyntaxKind.
AwaitKeyword
);
631
N(SyntaxKind.
AwaitKeyword
);
665
N(SyntaxKind.
AwaitKeyword
);
706
N(SyntaxKind.
AwaitKeyword
);
743
N(SyntaxKind.
AwaitKeyword
);
746
N(SyntaxKind.
AwaitKeyword
);
777
N(SyntaxKind.
AwaitKeyword
);
805
N(SyntaxKind.
AwaitKeyword
);
838
N(SyntaxKind.
AwaitKeyword
);
873
N(SyntaxKind.
AwaitKeyword
);
902
N(SyntaxKind.
AwaitKeyword
);
950
N(SyntaxKind.
AwaitKeyword
);
995
N(SyntaxKind.
AwaitKeyword
);
1064
N(SyntaxKind.
AwaitKeyword
);
1125
N(SyntaxKind.
AwaitKeyword
);
1173
N(SyntaxKind.
AwaitKeyword
);
1210
N(SyntaxKind.
AwaitKeyword
);
1263
N(SyntaxKind.
AwaitKeyword
);
1398
N(SyntaxKind.
AwaitKeyword
);
1478
N(SyntaxKind.
AwaitKeyword
);
1648
N(SyntaxKind.
AwaitKeyword
);
1862
N(SyntaxKind.
AwaitKeyword
);
1888
N(SyntaxKind.
AwaitKeyword
);
1891
N(SyntaxKind.
AwaitKeyword
);
1918
N(SyntaxKind.
AwaitKeyword
);
1960
N(SyntaxKind.
AwaitKeyword
);
2002
N(SyntaxKind.
AwaitKeyword
);
2044
N(SyntaxKind.
AwaitKeyword
);
2075
N(SyntaxKind.
AwaitKeyword
);
2107
N(SyntaxKind.
AwaitKeyword
);
2139
N(SyntaxKind.
AwaitKeyword
);
2171
N(SyntaxKind.
AwaitKeyword
);
2197
N(SyntaxKind.
AwaitKeyword
);
2223
N(SyntaxKind.
AwaitKeyword
);
2249
N(SyntaxKind.
AwaitKeyword
);
2275
N(SyntaxKind.
AwaitKeyword
);
2301
N(SyntaxKind.
AwaitKeyword
);
2327
N(SyntaxKind.
AwaitKeyword
);
2363
N(SyntaxKind.
AwaitKeyword
);
2457
N(SyntaxKind.
AwaitKeyword
);
2595
N(SyntaxKind.
AwaitKeyword
);
2641
N(SyntaxKind.
AwaitKeyword
);
Parsing\CollectionExpressionParsingTests.cs (2)
6215
N(SyntaxKind.
AwaitKeyword
);
6276
N(SyntaxKind.
AwaitKeyword
);
Parsing\DeclarationScopeParsingTests.cs (6)
11908
N(SyntaxKind.
AwaitKeyword
);
11928
N(SyntaxKind.
AwaitKeyword
);
11952
N(SyntaxKind.
AwaitKeyword
);
11993
N(SyntaxKind.
AwaitKeyword
);
12038
N(SyntaxKind.
AwaitKeyword
);
12134
N(SyntaxKind.
AwaitKeyword
);
Parsing\ExpressionParsingTests.cs (2)
3205
N(SyntaxKind.
AwaitKeyword
);
3788
N(SyntaxKind.
AwaitKeyword
);
Parsing\LambdaParameterParsingTests.cs (1)
5107
N(SyntaxKind.
AwaitKeyword
);
Parsing\LocalFunctionParsingTests.cs (4)
136
N(SyntaxKind.
AwaitKeyword
);
258
N(SyntaxKind.
AwaitKeyword
);
1529
N(SyntaxKind.
AwaitKeyword
);
1631
N(SyntaxKind.
AwaitKeyword
);
Parsing\StatementAttributeParsingTests.cs (5)
1449
N(SyntaxKind.
AwaitKeyword
);
1536
N(SyntaxKind.
AwaitKeyword
);
4307
N(SyntaxKind.
AwaitKeyword
);
7296
N(SyntaxKind.
AwaitKeyword
);
7405
N(SyntaxKind.
AwaitKeyword
);
Parsing\StatementParsingTests.cs (5)
2591
N(SyntaxKind.
AwaitKeyword
);
2629
Assert.Equal(SyntaxKind.
AwaitKeyword
, us.AwaitKeyword.ContextualKind());
2654
N(SyntaxKind.
AwaitKeyword
);
2777
N(SyntaxKind.
AwaitKeyword
);
3336
TestContextualKeywordAsLocalVariableType(SyntaxKind.
AwaitKeyword
);
Parsing\Utf8StringLiteralsParsingTests.cs (4)
946
N(SyntaxKind.
AwaitKeyword
);
962
N(SyntaxKind.
AwaitKeyword
);
978
N(SyntaxKind.
AwaitKeyword
);
996
N(SyntaxKind.
AwaitKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\ClassificationHelpers.cs (1)
70
case SyntaxKind.
AwaitKeyword
:
Rename\CSharpRenameRewriterLanguageService.cs (1)
1013
case SyntaxKind.
AwaitKeyword
:
Simplification\Reducers\CSharpEscapingReducer.cs (1)
53
if (SyntaxFacts.GetContextualKeywordKind(unescapedIdentifier) == SyntaxKind.
AwaitKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
14
public static readonly SyntaxToken AwaitKeyword = Token(SyntaxKind.
AwaitKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
136
public int AwaitKeyword => (int)SyntaxKind.
AwaitKeyword
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (2)
454
if (targetToken.IsKind(SyntaxKind.
AwaitKeyword
))
466
&& targetToken.HasMatchingText(SyntaxKind.
AwaitKeyword
))