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
SyntaxTree oldTree
SyntaxTree newTree
Returns
Type Description
SyntaxTreeTransformation