Open sandboxFocus

Method RewriteSyntaxTreesAsync

RewriteSyntaxTreesAsync(IPartialCompilation, CSharpSyntaxRewriter, ProjectServiceProvider, CancellationToken)

Declaration
public static Task<IPartialCompilation> RewriteSyntaxTreesAsync(this IPartialCompilation compilation, CSharpSyntaxRewriter rewriter, ProjectServiceProvider serviceProvider, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IPartialCompilation compilation
CSharpSyntaxRewriter rewriter
ProjectServiceProvider serviceProvider
CancellationToken cancellationToken
Returns
Type Description
Task<IPartialCompilation>

RewriteSyntaxTreesAsync(IPartialCompilation, Func<SyntaxNode, CSharpSyntaxRewriter>, ProjectServiceProvider, CancellationToken)

Declaration
public static Task<IPartialCompilation> RewriteSyntaxTreesAsync(this IPartialCompilation compilation, Func<SyntaxNode, CSharpSyntaxRewriter> rewriterFactory, ProjectServiceProvider serviceProvider, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IPartialCompilation compilation
Func<SyntaxNode, CSharpSyntaxRewriter> rewriterFactory
ProjectServiceProvider serviceProvider
CancellationToken cancellationToken
Returns
Type Description
Task<IPartialCompilation>