Type Alias NodeVisitor
Type declaration
- (node, parentNode?, property?): void
Parameters
- node: NonRootResult
the visited node.
OptionalparentNode: NonRootResultthe parent node.
Optionalproperty: 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.