new Visit()
Methods
-
_dump(node [, shallow])
-
Creates a deep display of a node.
Parameters:
Name Type Argument Description nodeArray to recursively traverse.
shallownumber <optional>
limits depth if non-negative, by default unlimited.
-
_error()
-
Displays and counts an error message.
-
_tree(node)
-
Recursively checks tree tags, throws an error if there is a problem.
Parameters:
Name Type Description nodeArray to validate.
-
visit(node [, trace])
-
Visits a (valid!) tree node, returns either
nodeitself or the result of calling tag as method for an array.Parameters:
Name Type Argument Description nodeArray to visit, using the tag as a method name and the node as argument.
traceRegExp <optional>
sets
.traceif specified.