Metalama//API Documentation/Advanced API/Metalama.​Compiler/Syntax­Tree­Transformation/Replace­Tree
Open sandboxFocus

Method ReplaceTree

ReplaceTree(SyntaxTree, SyntaxTree)

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