Metalama 1.0 / / Metalama Documentation / Advanced API / Metalama.​Framework.​Engine.​Code­Model / Partial­Compilation­Extensions / Rewrite­Syntax­Trees­Async

Method RewriteSyntaxTreesAsync

RewriteSyntaxTreesAsync(IPartialCompilation, CSharpSyntaxRewriter, ProjectServiceProvider, CancellationToken)

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