Lines Matching refs:NodeVisitor
9 public const DONT_TRAVERSE_CHILDREN = NodeVisitor::DONT_TRAVERSE_CHILDREN;
14 public const STOP_TRAVERSAL = NodeVisitor::STOP_TRAVERSAL;
19 public const REMOVE_NODE = NodeVisitor::REMOVE_NODE;
24 … public const DONT_TRAVERSE_CURRENT_AND_CHILDREN = NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
35 * @param NodeVisitor ...$visitors Node visitors
37 public function __construct(NodeVisitor ...$visitors) {
44 * @param NodeVisitor $visitor Visitor to add
46 public function addVisitor(NodeVisitor $visitor): void {
53 public function removeVisitor(NodeVisitor $visitor): void {
112 } elseif (NodeVisitor::DONT_TRAVERSE_CHILDREN === $return) {
114 } elseif (NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN === $return) {
117 } elseif (NodeVisitor::STOP_TRAVERSAL === $return) {
120 } elseif (NodeVisitor::REPLACE_WITH_NULL === $return) {
146 } elseif (NodeVisitor::STOP_TRAVERSAL === $return) {
149 } elseif (NodeVisitor::REPLACE_WITH_NULL === $return) {
192 } elseif (NodeVisitor::REMOVE_NODE === $return) {
195 } elseif (NodeVisitor::DONT_TRAVERSE_CHILDREN === $return) {
197 } elseif (NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN === $return) {
200 } elseif (NodeVisitor::STOP_TRAVERSAL === $return) {
203 } elseif (NodeVisitor::REPLACE_WITH_NULL === $return) {
232 } elseif (NodeVisitor::REMOVE_NODE === $return) {
235 } elseif (NodeVisitor::STOP_TRAVERSAL === $return) {
238 } elseif (NodeVisitor::REPLACE_WITH_NULL === $return) {