Lines Matching refs:node
91 * @param Node $node Node to traverse.
93 protected function traverseNode(Node $node): void { argument
94 foreach ($node->getSubNodeNames() as $name) {
95 $subNode = $node->$name;
98 $node->$name = $this->traverseArray($subNode);
111 $subNode = $node->$name = $return;
121 $node->$name = null;
145 $subNode = $node->$name = $return;
150 $node->$name = null;
178 foreach ($nodes as $i => $node) {
179 if ($node instanceof Node) {
184 $return = $visitor->enterNode($node);
187 $this->ensureReplacementReasonable($node, $return);
188 $nodes[$i] = $node = $return;
215 $this->traverseNode($node);
223 $return = $visitor->leaveNode($node);
227 $this->ensureReplacementReasonable($node, $return);
228 $nodes[$i] = $node = $return;
248 } elseif (\is_array($node)) {