If NodeVisitor::leaveNode() returns REMOVE_NODE for a node that occurs in an array, it will be removed from the array.
For subsequent visitors leaveNode() will still be invoked for the removed node.
public const REMOVE_NODE = 3;