Open sandboxFocus

Method WithSyntaxTreeTransformations

WithSyntaxTreeTransformations(IReadOnlyList<SyntaxTreeTransformation>?)

Returns a new IPartialCompilation with the specified syntax tree transformations applied.

Declaration
IPartialCompilation WithSyntaxTreeTransformations(IReadOnlyList<SyntaxTreeTransformation>? transformations = null)
Parameters
Type Name Description
IReadOnlyList<SyntaxTreeTransformation> transformations

The list of transformations to apply. Each SyntaxTreeTransformation can add, remove, or replace a syntax tree. Pass null or empty list to return the same instance.

Returns
Type Description
IPartialCompilation

A new IPartialCompilation with the transformations applied.

See Also