Lines Matching refs:nodes
20 * on the node payloads to get the text for the nodes. Detect parse trees
146 * @param array<ParseTree> $nodes
150 private static function findNodesInTree(ParseTree $tree, int $index, bool $findTokens, array $nodes) : array
154 $nodes[] = $tree;
156 $nodes[] = $tree;
164 $nodes = self::findNodesInTree($child, $index, $findTokens, $nodes);
168 return $nodes;
176 $nodes = [$tree];
181 $nodes[] = self::descendants($child);
185 return \array_merge(...$nodes);