private static SyntaxNode ConvertLocalFunctionToAsync(LocalFunctionStatementSyntax localFunction) { var token = localFunction.GetFirstToken(); return(localFunction .ReplaceToken(token, token.WithLeadingTrivia(TriviaList())) .AddModifiers(Token(token.LeadingTrivia, SyntaxKind.AsyncKeyword, TriviaList(Space))) .WithAdditionalAnnotations(Formatter.Annotation)); }