MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​Code­ModelPartial­Compilation­ExtensionsRewrite­Syntax­Trees­Async
Open sandboxFocus

PartialCompilationExtensions.RewriteSyntaxTreesAsync Method

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>

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

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