MrKWatkins.Ast Help

Replacer<TBaseNode, TNode> Class

Definition

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

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

Type Parameters

Name

Description

TBaseNode

The base type of nodes in the tree.

TNode

The type of nodes to process.

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