Lines Matching refs:visitor
44 * @param NodeVisitor $visitor Visitor to add
46 public function addVisitor(NodeVisitor $visitor): void { argument
47 $this->visitors[] = $visitor;
53 public function removeVisitor(NodeVisitor $visitor): void { argument
54 $index = array_search($visitor, $this->visitors);
70 foreach ($this->visitors as $visitor) {
71 if (null !== $return = $visitor->beforeTraverse($nodes)) {
79 $visitor = $this->visitors[$i];
80 if (null !== $return = $visitor->afterTraverse($nodes)) {
106 foreach ($this->visitors as $visitorIndex => $visitor) {
107 $return = $visitor->enterNode($subNode);
139 $visitor = $this->visitors[$visitorIndex];
140 $return = $visitor->leaveNode($subNode);
183 foreach ($this->visitors as $visitorIndex => $visitor) {
184 $return = $visitor->enterNode($node);
222 $visitor = $this->visitors[$visitorIndex];
223 $return = $visitor->leaveNode($node);