MetalamaAPI documentationAdvanced APIMetalama.​CompilerSyntax­Tree­TransformationReplace­Tree
Open sandboxFocus

SyntaxTreeTransformation.ReplaceTree Method

ReplaceTree(SyntaxTree, SyntaxTree)

Declaration
public static SyntaxTreeTransformation ReplaceTree(SyntaxTree oldTree, SyntaxTree newTree)
Parameters
Type Name Description
Microsoft.CodeAnalysis.SyntaxTree oldTree
Microsoft.CodeAnalysis.SyntaxTree newTree
Returns
Type Description
SyntaxTreeTransformation