ConstVisit a selected subTree given a startObject, steering the visits based on Typed nodes. Similar to this.visitNode, but also allowing you to target subTypes. Will call the preVisitor on the outer distinct, then the visitor of the special distinct, followed by the visiting the outer distinct, printing '231'. The pre-visitor visits starting from the root, going deeper, while the actual visitor goes in reverse.
the object from which we will start visiting, potentially visiting its descendants along the way.
a dictionary mapping the various operation types to objects optionally containing preVisitor and visitor. The preVisitor allows you to provide VisitContext for the current object, altering how it will be visited. The visitor allows you to visit the object from deepest to the outermost object. This is useful if you for example want to manipulate the objects you visit during your visits, similar to mapOperation.
Same as nodeCallBacks but using an additional level of indirection to indicate the subType.
the object from which we will start visiting, potentially visiting its descendants along the way.
a dictionary mapping the various operation types to objects optionally containing preVisitor and visitor. The preVisitor allows you to provide VisitContext for the current object, altering how it will be visited. The visitor allows you to visit the object from deepest to the outermost object. This is useful if you for example want to manipulate the objects you visit during your visits, similar to mapOperation.
Visits an object and it's descendants, similar to visitOperation, but also allowing you to target subTypes. e.g.: e.g.:
Will call the preVisitor on the outer distinct, then the visitor of the special distinct, followed by the visiting the outer distinct, printing '231'. The pre-visitor visits starting from the root, going deeper, while the actual visitor goes in reverse.