273 references to AsyncKeyword
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Lambda.cs (1)
106
if (modifier.IsKind(SyntaxKind.
AsyncKeyword
))
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
596
if (lambdaSyntax.AsyncKeyword.Kind() == SyntaxKind.
AsyncKeyword
)
614
if (lambdaSyntax.AsyncKeyword.Kind() == SyntaxKind.
AsyncKeyword
)
Parser\LanguageParser.cs (18)
1328
case SyntaxKind.
AsyncKeyword
:
1337
case SyntaxKind.
AsyncKeyword
:
2902
this.CurrentToken.ContextualKind is not (SyntaxKind.PartialKeyword or SyntaxKind.
AsyncKeyword
or SyntaxKind.RequiredKeyword or SyntaxKind.FileKeyword) &&
3195
if (contextualKind != SyntaxKind.
AsyncKeyword
||
3489
IsInAsync = modifiers.Any((int)SyntaxKind.
AsyncKeyword
);
7431
if (this.CurrentToken.ContextualKind is SyntaxKind.
AsyncKeyword
or SyntaxKind.AwaitKeyword or SyntaxKind.FromKeyword)
8191
&& (tk is not (SyntaxKind.
AsyncKeyword
or SyntaxKind.ScopedKeyword) || ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: true));
10306
if (k == SyntaxKind.
AsyncKeyword
)
10389
case SyntaxKind.
AsyncKeyword
:
10454
case SyntaxKind.
AsyncKeyword
:
11759
this.PeekToken(tokenIndex).ContextualKind == SyntaxKind.
AsyncKeyword
)
12546
else if (this.CurrentToken.ContextualKind == SyntaxKind.
AsyncKeyword
&&
12589
if (this.CurrentToken.ContextualKind == SyntaxKind.
AsyncKeyword
&&
13179
if (modifiers.Any((int)SyntaxKind.
AsyncKeyword
))
13237
if (this.CurrentToken.ContextualKind == SyntaxKind.
AsyncKeyword
&&
13240
modifiers.Add(this.EatContextualToken(SyntaxKind.
AsyncKeyword
));
13252
Debug.Assert(this.CurrentToken.ContextualKind == SyntaxKind.
AsyncKeyword
);
13305
if (modifiers.Any((int)SyntaxKind.
AsyncKeyword
))
Symbols\Source\ModifierUtils.cs (3)
318
return SyntaxFacts.GetText(SyntaxKind.
AsyncKeyword
);
338
case SyntaxKind.
AsyncKeyword
:
410
var isPartialAsyncMethod = isOrdinaryMethod && i == modifiers.Count - 2 && modifiers[i + 1].ContextualKind() is SyntaxKind.
AsyncKeyword
;
Syntax\AnonymousFunctionExpressionSyntax.cs (2)
38
if (Modifiers.Any(SyntaxKind.
AsyncKeyword
))
40
return new SyntaxTokenList(Modifiers.Where(m => !m.IsKind(SyntaxKind.
AsyncKeyword
)));
Syntax\AnonymousMethodExpressionSyntax.cs (1)
25
=> this.Modifiers.FirstOrDefault(SyntaxKind.
AsyncKeyword
);
Syntax\ParenthesizedLambdaExpressionSyntax.cs (1)
22
=> this.Modifiers.FirstOrDefault(SyntaxKind.
AsyncKeyword
);
Syntax\SimpleLambdaExpressionSyntax.cs (1)
22
=> this.Modifiers.FirstOrDefault(SyntaxKind.
AsyncKeyword
);
Syntax\SyntaxKindFacts.cs (3)
1214
case SyntaxKind.
AsyncKeyword
:
1323
return SyntaxKind.
AsyncKeyword
;
1765
case SyntaxKind.
AsyncKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
88
if (wasAwaited != anonymousFunction.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForLocalFunctionHelper.cs (1)
56
if (statement.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
56
if (declaration.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
13
public static readonly SyntaxToken AsyncKeyword = Token(SyntaxKind.
AsyncKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
170
SyntaxKind.
AsyncKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
97
case SyntaxKind.
AsyncKeyword
:
107
if (token.HasMatchingText(SyntaxKind.
AsyncKeyword
))
109
modifierKind = SyntaxKind.
AsyncKeyword
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
135
SyntaxKind.
AsyncKeyword
=> DeclarationModifiers.Async,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
137
public int AsyncKeyword => (int)SyntaxKind.
AsyncKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
87
if (!methodDeclaration.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (2)
145
MethodDeclarationSyntax method => (method.ReturnType, method.Modifiers.Any(SyntaxKind.
AsyncKeyword
)),
148
LocalFunctionStatementSyntax localFunction => (localFunction.ReturnType, localFunction.Modifiers.Any(SyntaxKind.
AsyncKeyword
)),
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
272
if (modifiers.Any(SyntaxKind.
AsyncKeyword
) || onYield)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (1)
35
var asyncTokenIndex = modifiers.IndexOf(SyntaxKind.
AsyncKeyword
);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
210
if (anonymousFunction.AsyncKeyword.IsKind(SyntaxKind.
AsyncKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
278
isTaskLikeTypeContext: precedingModifiers.Contains(SyntaxKind.
AsyncKeyword
),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
24
SyntaxKind.
AsyncKeyword
,
298
if (token.HasMatchingText(SyntaxKind.
AsyncKeyword
))
2879
if (token.Text == SyntaxFacts.GetText(SyntaxKind.
AsyncKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
30
SyntaxKind.
AsyncKeyword
,
Microsoft.CodeAnalysis.CSharp.Features (39)
CodeRefactorings\AddAwait\CSharpAddAwaitCodeRefactoringProvider.cs (1)
39
return methodDeclaration.Modifiers.Any(SyntaxKind.
AsyncKeyword
);
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
178
if (identifier.Identifier.IsKindOrHasMatchingText(SyntaxKind.
AsyncKeyword
))
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
61
if (context.TargetToken.IsKindOrHasMatchingText(SyntaxKind.
AsyncKeyword
) ||
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
578
case SyntaxKind.
AsyncKeyword
:
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (2)
74
if (SyntaxFacts.GetContextualKeywordKind(targetToken.ValueText) == SyntaxKind.
AsyncKeyword
)
127
if (tokenBeforeType.Kind() == SyntaxKind.
AsyncKeyword
)
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
118
if (token.IsKindOrHasMatchingText(SyntaxKind.
AsyncKeyword
))
Completion\KeywordRecommenders\AsyncKeywordRecommender.cs (2)
16
: base(SyntaxKind.
AsyncKeyword
, isValidInPreprocessorContext: false)
29
context.PrecedingModifiers.Contains(SyntaxKind.
AsyncKeyword
))
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
59
context.TargetToken.IsKindOrHasMatchingText(SyntaxKind.
AsyncKeyword
) &&
Completion\KeywordRecommenders\PartialKeywordRecommender.cs (1)
20
SyntaxKind.
AsyncKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
28
SyntaxKind.
AsyncKeyword
,
43
SyntaxKind.
AsyncKeyword
,
72
SyntaxKind.
AsyncKeyword
,
89
context.SyntaxTree.IsLambdaDeclarationContext(position, otherModifier: SyntaxKind.
AsyncKeyword
, cancellationToken) ||
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (1)
60
SyntaxKind.
AsyncKeyword
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
29
SyntaxKind.
AsyncKeyword
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
198
modifiers: [.. otherMethod.Modifiers.Where(m => m.Kind() is SyntaxKind.
AsyncKeyword
or SyntaxKind.UnsafeKeyword)],
EditAndContinue\SyntaxComparer.cs (2)
943
if ((leftAsync.Kind() == SyntaxKind.
AsyncKeyword
) != (rightAsync.Kind() == SyntaxKind.
AsyncKeyword
))
EditAndContinue\SyntaxUtilities.cs (3)
211
return anonymousFunction.AsyncKeyword.IsKind(SyntaxKind.
AsyncKeyword
);
223
MethodDeclarationSyntax method => method.Modifiers.Any(SyntaxKind.
AsyncKeyword
),
224
LocalFunctionStatementSyntax localFunction => localFunction.Modifiers.Any(SyntaxKind.
AsyncKeyword
),
ExtractMethod\CSharpSelectionResult.StatementResult.cs (4)
35
MethodDeclarationSyntax method => method.Modifiers.Any(SyntaxKind.
AsyncKeyword
),
36
ParenthesizedLambdaExpressionSyntax lambda => lambda.AsyncKeyword.Kind() == SyntaxKind.
AsyncKeyword
,
37
SimpleLambdaExpressionSyntax lambda => lambda.AsyncKeyword.Kind() == SyntaxKind.
AsyncKeyword
,
38
AnonymousMethodExpressionSyntax anonymous => anonymous.AsyncKeyword.Kind() == SyntaxKind.
AsyncKeyword
,
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
55
SyntaxKind.
AsyncKeyword
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)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
88
if (wasAwaited != anonymousFunction.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForLocalFunctionHelper.cs (1)
56
if (statement.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
56
if (declaration.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
87
if (!methodDeclaration.Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (2)
145
MethodDeclarationSyntax method => (method.ReturnType, method.Modifiers.Any(SyntaxKind.
AsyncKeyword
)),
148
LocalFunctionStatementSyntax localFunction => (localFunction.ReturnType, localFunction.Modifiers.Any(SyntaxKind.
AsyncKeyword
)),
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
272
if (modifiers.Any(SyntaxKind.
AsyncKeyword
) || onYield)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (1)
35
var asyncTokenIndex = modifiers.IndexOf(SyntaxKind.
AsyncKeyword
);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
210
if (anonymousFunction.AsyncKeyword.IsKind(SyntaxKind.
AsyncKeyword
))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (163)
Parsing\AnonymousFunctionParsingTests.cs (19)
85
N(SyntaxKind.
AsyncKeyword
);
86
N(SyntaxKind.
AsyncKeyword
);
284
N(SyntaxKind.
AsyncKeyword
);
385
N(SyntaxKind.
AsyncKeyword
);
743
N(SyntaxKind.
AsyncKeyword
);
2553
N(SyntaxKind.
AsyncKeyword
);
2700
N(SyntaxKind.
AsyncKeyword
);
2848
N(SyntaxKind.
AsyncKeyword
);
2850
N(SyntaxKind.
AsyncKeyword
);
3110
N(SyntaxKind.
AsyncKeyword
);
3374
N(SyntaxKind.
AsyncKeyword
);
3526
N(SyntaxKind.
AsyncKeyword
);
3679
N(SyntaxKind.
AsyncKeyword
);
3681
N(SyntaxKind.
AsyncKeyword
);
3968
N(SyntaxKind.
AsyncKeyword
);
4250
N(SyntaxKind.
AsyncKeyword
);
4411
N(SyntaxKind.
AsyncKeyword
);
4573
N(SyntaxKind.
AsyncKeyword
);
4575
N(SyntaxKind.
AsyncKeyword
);
Parsing\AsyncParsingTests.cs (51)
55
N(SyntaxKind.
AsyncKeyword
);
216
N(SyntaxKind.
AsyncKeyword
);
257
N(SyntaxKind.
AsyncKeyword
);
258
N(SyntaxKind.
AsyncKeyword
);
303
N(SyntaxKind.
AsyncKeyword
);
407
N(SyntaxKind.
AsyncKeyword
);
531
N(SyntaxKind.
AsyncKeyword
);
532
N(SyntaxKind.
AsyncKeyword
);
565
N(SyntaxKind.
AsyncKeyword
);
609
N(SyntaxKind.
AsyncKeyword
);
610
N(SyntaxKind.
AsyncKeyword
);
611
N(SyntaxKind.
AsyncKeyword
);
644
N(SyntaxKind.
AsyncKeyword
);
645
N(SyntaxKind.
AsyncKeyword
);
691
N(SyntaxKind.
AsyncKeyword
);
737
N(SyntaxKind.
AsyncKeyword
);
792
N(SyntaxKind.
AsyncKeyword
);
895
N(SyntaxKind.
AsyncKeyword
);
939
N(SyntaxKind.
AsyncKeyword
);
1031
N(SyntaxKind.
AsyncKeyword
);
1169
N(SyntaxKind.
AsyncKeyword
);
1209
N(SyntaxKind.
AsyncKeyword
);
1260
N(SyntaxKind.
AsyncKeyword
);
1283
N(SyntaxKind.
AsyncKeyword
);
1291
N(SyntaxKind.
AsyncKeyword
);
1342
N(SyntaxKind.
AsyncKeyword
);
1370
N(SyntaxKind.
AsyncKeyword
);
1390
N(SyntaxKind.
AsyncKeyword
);
1454
N(SyntaxKind.
AsyncKeyword
);
1497
N(SyntaxKind.
AsyncKeyword
);
1541
N(SyntaxKind.
AsyncKeyword
);
1594
N(SyntaxKind.
AsyncKeyword
);
1654
N(SyntaxKind.
AsyncKeyword
);
1711
N(SyntaxKind.
AsyncKeyword
);
1765
N(SyntaxKind.
AsyncKeyword
);
1823
N(SyntaxKind.
AsyncKeyword
);
1877
N(SyntaxKind.
AsyncKeyword
);
1934
N(SyntaxKind.
AsyncKeyword
);
1986
N(SyntaxKind.
AsyncKeyword
);
2040
N(SyntaxKind.
AsyncKeyword
);
2085
N(SyntaxKind.
AsyncKeyword
);
2115
N(SyntaxKind.
AsyncKeyword
);
2154
N(SyntaxKind.
AsyncKeyword
);
2200
N(SyntaxKind.
AsyncKeyword
);
2249
N(SyntaxKind.
AsyncKeyword
);
2301
N(SyntaxKind.
AsyncKeyword
);
2346
N(SyntaxKind.
AsyncKeyword
);
2673
N(SyntaxKind.
AsyncKeyword
);
2722
N(SyntaxKind.
AsyncKeyword
);
2764
N(SyntaxKind.
AsyncKeyword
);
2818
N(SyntaxKind.
AsyncKeyword
);
Parsing\AsyncStreamsParsingTests.cs (6)
55
N(SyntaxKind.
AsyncKeyword
);
133
N(SyntaxKind.
AsyncKeyword
);
214
N(SyntaxKind.
AsyncKeyword
);
296
N(SyntaxKind.
AsyncKeyword
);
395
N(SyntaxKind.
AsyncKeyword
);
489
N(SyntaxKind.
AsyncKeyword
);
Parsing\AwaitParsingTests.cs (22)
49
N(SyntaxKind.
AsyncKeyword
);
178
N(SyntaxKind.
AsyncKeyword
);
260
N(SyntaxKind.
AsyncKeyword
);
351
N(SyntaxKind.
AsyncKeyword
);
438
N(SyntaxKind.
AsyncKeyword
);
482
N(SyntaxKind.
AsyncKeyword
);
526
N(SyntaxKind.
AsyncKeyword
);
560
N(SyntaxKind.
AsyncKeyword
);
588
N(SyntaxKind.
AsyncKeyword
);
622
N(SyntaxKind.
AsyncKeyword
);
656
N(SyntaxKind.
AsyncKeyword
);
697
N(SyntaxKind.
AsyncKeyword
);
734
N(SyntaxKind.
AsyncKeyword
);
765
N(SyntaxKind.
AsyncKeyword
);
796
N(SyntaxKind.
AsyncKeyword
);
827
N(SyntaxKind.
AsyncKeyword
);
891
N(SyntaxKind.
AsyncKeyword
);
936
N(SyntaxKind.
AsyncKeyword
);
1050
N(SyntaxKind.
AsyncKeyword
);
1109
N(SyntaxKind.
AsyncKeyword
);
1433
N(SyntaxKind.
AsyncKeyword
);
1603
N(SyntaxKind.
AsyncKeyword
);
Parsing\CollectionExpressionParsingTests.cs (1)
6258
N(SyntaxKind.
AsyncKeyword
);
Parsing\ExpressionParsingTests.cs (8)
3171
N(SyntaxKind.
AsyncKeyword
);
3271
N(SyntaxKind.
AsyncKeyword
);
3361
N(SyntaxKind.
AsyncKeyword
);
3435
N(SyntaxKind.
AsyncKeyword
);
3517
N(SyntaxKind.
AsyncKeyword
);
3596
N(SyntaxKind.
AsyncKeyword
);
3669
N(SyntaxKind.
AsyncKeyword
);
3754
N(SyntaxKind.
AsyncKeyword
);
Parsing\FileModifierParsingTests.cs (1)
1024
N(SyntaxKind.
AsyncKeyword
);
Parsing\FunctionPointerTests.cs (2)
3363
N(SyntaxKind.
AsyncKeyword
);
3516
N(SyntaxKind.
AsyncKeyword
);
Parsing\LambdaAttributeParsingTests.cs (12)
884
yield return getData("[A] async x => x", tests => tests.LambdaExpression_01(SyntaxKind.
AsyncKeyword
));
886
yield return getData("[A] async static x => x", tests => tests.LambdaExpression_01(SyntaxKind.
AsyncKeyword
, SyntaxKind.StaticKeyword));
887
yield return getData("[A] static async x => x", tests => tests.LambdaExpression_01(SyntaxKind.StaticKeyword, SyntaxKind.
AsyncKeyword
));
890
yield return getData("[A]async () => { }", tests => tests.LambdaExpression_02(SyntaxKind.
AsyncKeyword
));
892
yield return getData("[A]async static () => { }", tests => tests.LambdaExpression_02(SyntaxKind.
AsyncKeyword
, SyntaxKind.StaticKeyword));
893
yield return getData("[A]static async () => { }", tests => tests.LambdaExpression_02(SyntaxKind.StaticKeyword, SyntaxKind.
AsyncKeyword
));
896
yield return getData("[A] async (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.
AsyncKeyword
));
898
yield return getData("[A] async static (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.
AsyncKeyword
, SyntaxKind.StaticKeyword));
899
yield return getData("[A] static async (x) => { }", tests => tests.LambdaExpression_03(SyntaxKind.StaticKeyword, SyntaxKind.
AsyncKeyword
));
902
yield return getData("[A] async (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.
AsyncKeyword
));
904
yield return getData("[A] async static (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.
AsyncKeyword
, SyntaxKind.StaticKeyword));
905
yield return getData("[A] static async (object x) => { }", tests => tests.LambdaExpression_04(SyntaxKind.StaticKeyword, SyntaxKind.
AsyncKeyword
));
Parsing\LambdaParameterParsingTests.cs (1)
5098
N(SyntaxKind.
AsyncKeyword
);
Parsing\LambdaReturnTypeParsingTests.cs (6)
29
yield return getModifiers("async", SyntaxKind.
AsyncKeyword
);
31
yield return getModifiers("async static", SyntaxKind.
AsyncKeyword
, SyntaxKind.StaticKeyword);
32
yield return getModifiers("static async", SyntaxKind.StaticKeyword, SyntaxKind.
AsyncKeyword
);
1757
N(SyntaxKind.
AsyncKeyword
);
4981
N(SyntaxKind.
AsyncKeyword
);
4982
N(SyntaxKind.
AsyncKeyword
);
Parsing\LocalFunctionParsingTests.cs (19)
1511
N(SyntaxKind.
AsyncKeyword
);
1613
N(SyntaxKind.
AsyncKeyword
);
1884
N(SyntaxKind.
AsyncKeyword
);
1901
N(SyntaxKind.
AsyncKeyword
);
2087
N(SyntaxKind.
AsyncKeyword
);
2164
N(SyntaxKind.
AsyncKeyword
);
2165
N(SyntaxKind.
AsyncKeyword
);
2247
N(SyntaxKind.
AsyncKeyword
);
2248
N(SyntaxKind.
AsyncKeyword
);
2249
N(SyntaxKind.
AsyncKeyword
);
2337
N(SyntaxKind.
AsyncKeyword
);
2338
N(SyntaxKind.
AsyncKeyword
);
2339
N(SyntaxKind.
AsyncKeyword
);
2340
N(SyntaxKind.
AsyncKeyword
);
2434
N(SyntaxKind.
AsyncKeyword
);
2435
N(SyntaxKind.
AsyncKeyword
);
2436
N(SyntaxKind.
AsyncKeyword
);
2437
N(SyntaxKind.
AsyncKeyword
);
2438
N(SyntaxKind.
AsyncKeyword
);
Parsing\MemberDeclarationParsingTests.cs (3)
786
N(SyntaxKind.
AsyncKeyword
);
884
N(SyntaxKind.
AsyncKeyword
);
967
N(SyntaxKind.
AsyncKeyword
);
Parsing\StatementAttributeParsingTests.cs (3)
1508
N(SyntaxKind.
AsyncKeyword
);
4277
N(SyntaxKind.
AsyncKeyword
);
7361
N(SyntaxKind.
AsyncKeyword
);
Parsing\StatementParsingTests.cs (2)
2706
N(SyntaxKind.
AsyncKeyword
);
3335
TestContextualKeywordAsLocalVariableType(SyntaxKind.
AsyncKeyword
);
Syntax\SyntaxNodeTests.cs (7)
3856
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.
AsyncKeyword
).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3865
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.
AsyncKeyword
).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3874
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.
AsyncKeyword
).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3883
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.
AsyncKeyword
).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3892
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.
AsyncKeyword
).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3901
var withAsync = expression.WithAsyncKeyword(SyntaxFactory.Token(SyntaxKind.
AsyncKeyword
).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3964
var newAsync = SyntaxFactory.Token(SyntaxKind.
AsyncKeyword
).WithTrailingTrivia(SyntaxFactory.Space);
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
Simplification\Reducers\CSharpEscapingReducer.cs (3)
60
if (simpleLambda.AsyncKeyword.Kind() == SyntaxKind.
AsyncKeyword
)
68
if (parenLamdba.AsyncKeyword.Kind() == SyntaxKind.
AsyncKeyword
)
77
if (enclosingMethodBlock != null && ((MethodDeclarationSyntax)enclosingMethodBlock).Modifiers.Any(SyntaxKind.
AsyncKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
13
public static readonly SyntaxToken AsyncKeyword = Token(SyntaxKind.
AsyncKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
170
SyntaxKind.
AsyncKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
97
case SyntaxKind.
AsyncKeyword
:
107
if (token.HasMatchingText(SyntaxKind.
AsyncKeyword
))
109
modifierKind = SyntaxKind.
AsyncKeyword
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
135
SyntaxKind.
AsyncKeyword
=> DeclarationModifiers.Async,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
137
public int AsyncKeyword => (int)SyntaxKind.
AsyncKeyword
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
278
isTaskLikeTypeContext: precedingModifiers.Contains(SyntaxKind.
AsyncKeyword
),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
24
SyntaxKind.
AsyncKeyword
,
298
if (token.HasMatchingText(SyntaxKind.
AsyncKeyword
))
2879
if (token.Text == SyntaxFacts.GetText(SyntaxKind.
AsyncKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (1)
30
SyntaxKind.
AsyncKeyword
,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
736
yield return CS.SyntaxFactory.Token(CS.SyntaxKind.
AsyncKeyword
);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
34
{ ModifierFlags.Async, SyntaxKind.
AsyncKeyword
},
91
case SyntaxKind.
AsyncKeyword
: