7 references to WithAsyncKeyword
Microsoft.CodeAnalysis.CSharp (1)
Syntax\ParenthesizedLambdaExpressionSyntax.cs (1)
25
=>
WithAsyncKeyword
(asyncKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (1)
25
=> lambda.
WithAsyncKeyword
(default).WithPrependedLeadingTrivia(lambda.AsyncKeyword.LeadingTrivia);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (1)
25
=> lambda.
WithAsyncKeyword
(default).WithPrependedLeadingTrivia(lambda.AsyncKeyword.LeadingTrivia);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxNodeTests.cs (4)
3865
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();
3919
var withAsync = expression.
WithAsyncKeyword
(default).ToString();
3946
var withAsync = expression.
WithAsyncKeyword
(default).ToString();