Skip to content

Visitor<TNode, TResult> Class ​

Definition ​

A Visitor<TContext, TNode, TResult> that does not take a context object. Any state the visitor needs must be held by the visitor itself.

c#
public abstract class Visitor<TNode, TResult> : Visitor<NoContext, TNode, TResult>
   where TNode : Node<TNode>

View source

Type Parameters ​

NameDescription
TNodeThe type of the nodes to visit.
TResultThe type of the result of visiting a node.

Constructors ​

NameDescription
Visitor()

Methods ​

NameDescription
Visit(TNode)Visits the specified node and returns the result.
VisitChildren(TNode)Visits all the children of the specified node in order and returns their results.
VisitNode(NoContext, TNode)Called to visit a node.
VisitNode(TNode)Called to visit a node.