Type Alias NodeVisitor
Type declaration
- (node, parentNode?, property?): void
Parameters
- node: NonRootResult
the visited node.
Optional
parentNode: NonRootResultthe parent node.
Optional
property: stringthe property on the parent node that contains the visited node. It can be the node itself or an array of nodes.
Returns void
- node: NonRootResult
A node visitor function.