An object that can be visited in a traversal by calling object.visit()

Methods

visit (preflight:Bool, userData:Dynamic):Bool

Parameters:

preflight

if true, an extra traversal is performed before the actual traversal runs.
The first pass visits all elements and calls element.visit() with the preflight parameter set to true. In this pass the return value determines whether the element will be included (true) or excluded (false) from the final traversal, which is performed in the second pass (preflight parameter set to false).

userData

custom data passed to every visited element. Default is null.