MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​Code­ModelIPartial­CompilationWith­Syntax­Tree­Transformations
Open sandboxFocus

IPartialCompilation.WithSyntaxTreeTransformations Method

WithSyntaxTreeTransformations(IReadOnlyList<SyntaxTreeTransformation>)

Returns a copy of the current IPartialCompilation where the SyntaxTrees have been modified.

Declaration
IPartialCompilation WithSyntaxTreeTransformations(IReadOnlyList<SyntaxTreeTransformation> transformations = null)
Parameters
Type Name Description
IReadOnlyList<SyntaxTreeTransformation> transformations
Returns
Type Description
IPartialCompilation
See Also
RewriteSyntaxTreesAsync(IPartialCompilation, Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter, ProjectServiceProvider, CancellationToken)