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