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.
47
var existingAsync =
AsyncKeyword
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
89
if (declaration.
AsyncKeyword
!= default)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
210
if (anonymousFunction.
AsyncKeyword
.IsKind(SyntaxKind.AsyncKeyword))
212
modifiers = modifiers.Add(anonymousFunction.
AsyncKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1625
var isAsync = anonymousFunction.
AsyncKeyword
.Kind() != SyntaxKind.None;
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\AddAwait\CSharpAddAwaitCodeRefactoringProvider.cs (1)
37
return anonymousFunction.
AsyncKeyword
!= default;
EditAndContinue\SyntaxUtilities.cs (1)
211
return anonymousFunction.
AsyncKeyword
.IsKind(SyntaxKind.AsyncKeyword);
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
74
AnonymousFunctionExpressionSyntax anonymousFunction => TryAddAsyncOrAwaitKeyword(anonymousFunction.
AsyncKeyword
, spans),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
144
if (oldLambda.
AsyncKeyword
!= default && delegateReturnType != null)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
89
if (declaration.
AsyncKeyword
!= default)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
210
if (anonymousFunction.
AsyncKeyword
.IsKind(SyntaxKind.AsyncKeyword))
212
modifiers = modifiers.Add(anonymousFunction.
AsyncKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1625
var isAsync = anonymousFunction.
AsyncKeyword
.Kind() != SyntaxKind.None;