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>Type Parameters ​
| Name | Description |
|---|---|
TNode | The type of the nodes to visit. |
TResult | The type of the result of visiting a node. |
Constructors ​
| Name | Description |
|---|---|
Visitor() |
Methods ​
| Name | Description |
|---|---|
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. |