14 references to AsyncKeyword
Microsoft.CodeAnalysis.CSharp (2)
Syntax\AnonymousFunctionExpressionSyntax.cs (2)
31/// Otherwise, replace the existing <see cref="AsyncKeyword"/> (the first one) or add a new one. 47var existingAsync = AsyncKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
89if (declaration.AsyncKeyword != default)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
210if (anonymousFunction.AsyncKeyword.IsKind(SyntaxKind.AsyncKeyword)) 212modifiers = modifiers.Add(anonymousFunction.AsyncKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1625var isAsync = anonymousFunction.AsyncKeyword.Kind() != SyntaxKind.None;
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\AddAwait\CSharpAddAwaitCodeRefactoringProvider.cs (1)
37return anonymousFunction.AsyncKeyword != default;
EditAndContinue\SyntaxUtilities.cs (1)
211return anonymousFunction.AsyncKeyword.IsKind(SyntaxKind.AsyncKeyword);
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
74AnonymousFunctionExpressionSyntax anonymousFunction => TryAddAsyncOrAwaitKeyword(anonymousFunction.AsyncKeyword, spans),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
144if (oldLambda.AsyncKeyword != default && delegateReturnType != null)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
89if (declaration.AsyncKeyword != default)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
210if (anonymousFunction.AsyncKeyword.IsKind(SyntaxKind.AsyncKeyword)) 212modifiers = modifiers.Add(anonymousFunction.AsyncKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1625var isAsync = anonymousFunction.AsyncKeyword.Kind() != SyntaxKind.None;