MrKWatkins.Ast Help

Validator<TBaseNode, TNode> Class

Definition

An UnorderedProcessor<TNode> for validating nodes of a specific type in a tree.

public abstract class Validator<TBaseNode, TNode> : UnorderedProcessor<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

Validator()

Methods

Name

Description

ProcessNode(TNode)

ValidateNode(TNode)

Validate the node and return any Messages to attach to the node to describe any validation issues.

Last modified: 09 September 2024