MrKWatkins.Ast Help

Replacer<TNode> Class

Definition

An OrderedProcessor<TNode> for optionally replacing nodes in a tree.

public abstract class Replacer<TNode> : OrderedProcessor<TNode> where TNode : Node<TNode>

Type Parameters

Name

Description

TNode

The type of nodes in the tree.

Constructors

Name

Description

Replacer()

Properties

Name

Description

ProcessReplacements

If set to true then replacement nodes and their children will be processed too. Defaults to false.

Methods

Name

Description

ProcessNode(TNode)

ReplaceNode(TNode)

Optionally replace the specified node.

Last modified: 09 September 2024