MrKWatkins.Ast Help

UnorderedProcessorWithContext<TContext, TNode> Class

Definition

A Processor<TNode> that processes the nodes in a tree without caring about the order they are processed in and gives access to a context object during processing.

public abstract class UnorderedProcessorWithContext<TContext, TNode> : Processor<TNode> where TNode : Node<TNode>

Type Parameters

Name

Description

TContext

The type of the context object.

TNode

The type of nodes in the tree.

Constructors

Methods

Name

Description

CreateContext(TNode)

Override to create the context object.

ProcessNode(TContext, TNode)

Process the specified node.

ShouldProcessNode(TContext, TNode)

Override this method to optionally decide whether to process the specified node or not. Defaults to processing all nodes.

Last modified: 22 November 2024