Listener<TContext, TNode> Class
Definition
A listener for a syntax tree. A listener walks the tree and gets notified when nodes are reached. An alternative to processing. Useful to build something completely new from the tree whereas processing is more useful to mutate the tree.
public abstract class Listener<TContext, TNode>
where TNode : Node<TNode>
Type Parameters
Name | Description |
---|---|
TContext | The type of the context object. |
TNode | The type of the nodes to listen to. |
Constructors
Name | Description |
---|---|
Methods
Name | Description |
---|---|
Called after a node and its descendents have been listened to. | |
Called before a node and its descendents are listened to. | |
Listen to the specified node and its descendents. | |
Called when the node is listened to. | |
Return a value indicating whether child nodes should be listened to or not. Defaults to |
Last modified: 22 November 2024