MrKWatkins.Ast Help

Children<TNode>.Replace Method

Definition

Replaces a node in the collection with another node. The replacement will be removed from its parent and the node being replaced will have it's parent removed.

public void Replace(TNode child, TNode replacement);

Parameters

Name

Type

Description

child

TNode

The node in the collection to replace.

replacement

TNode

The node to replace child with.

Last modified: 09 September 2024