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

PartialCompilationExtensions.UpdateSyntaxTrees Method

UpdateSyntaxTrees(IPartialCompilation, Func<SyntaxTree, CancellationToken, SyntaxTree>, CancellationToken)

Declaration
public static IPartialCompilation UpdateSyntaxTrees(this IPartialCompilation compilation, Func<SyntaxTree, CancellationToken, SyntaxTree> updateTree, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IPartialCompilation compilation
Func<SyntaxTree, CancellationToken, SyntaxTree> updateTree
CancellationToken cancellationToken
Returns
Type Description
IPartialCompilation

UpdateSyntaxTrees(IPartialCompilation, Func<SyntaxNode, CancellationToken, SyntaxNode>, CancellationToken)

Declaration
public static IPartialCompilation UpdateSyntaxTrees(this IPartialCompilation compilation, Func<SyntaxNode, CancellationToken, SyntaxNode> updateSyntaxRoot, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IPartialCompilation compilation
Func<SyntaxNode, CancellationToken, SyntaxNode> updateSyntaxRoot
CancellationToken cancellationToken
Returns
Type Description
IPartialCompilation

UpdateSyntaxTrees(IPartialCompilation, Func<SyntaxTree, SyntaxTree>, CancellationToken)

Declaration
public static IPartialCompilation UpdateSyntaxTrees(this IPartialCompilation compilation, Func<SyntaxTree, SyntaxTree> updateTree, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IPartialCompilation compilation
Func<SyntaxTree, SyntaxTree> updateTree
CancellationToken cancellationToken
Returns
Type Description
IPartialCompilation