9 references to WithAsyncKeyword
Microsoft.CodeAnalysis.CSharp (1)
Syntax\AnonymousMethodExpressionSyntax.cs (1)
27
internal override AnonymousFunctionExpressionSyntax WithAsyncKeywordCore(SyntaxToken asyncKeyword) =>
WithAsyncKeyword
(asyncKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (1)
31
=> method.
WithAsyncKeyword
(default).WithPrependedLeadingTrivia(method.AsyncKeyword.LeadingTrivia);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (1)
31
=> method.
WithAsyncKeyword
(default).WithPrependedLeadingTrivia(method.AsyncKeyword.LeadingTrivia);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (6)
3894
var withAsync = expression.
WithAsyncKeyword
(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3921
var withAsync = expression.
WithAsyncKeyword
(SyntaxFactory.Token(SyntaxKind.AsyncKeyword).WithTrailingTrivia(SyntaxFactory.Space)).ToString();
3948
var withAsync = expression.
WithAsyncKeyword
(default).ToString();
3975
var withAsync = expression.
WithAsyncKeyword
(default).ToString();
4003
var withAsync = expression.
WithAsyncKeyword
(newAsync).ToString();
4012
var withAsync = expression.
WithAsyncKeyword
(default);