Lines Matching refs:nodes
311 * @param Node[] $nodes Array of nodes
313 protected function preprocessNodes(array $nodes): void { argument
316 foreach ($nodes as $node) {
343 * @param Node[] $nodes Array of nodes
348 protected function pStmts(array $nodes, bool $indent = true): string { argument
354 foreach ($nodes as $node) {
460 * @param Node[] $nodes Array of Nodes to be printed
465 protected function pImplode(array $nodes, string $glue = ''): string { argument
467 foreach ($nodes as $node) {
481 * @param Node[] $nodes Array of Nodes to be printed
485 protected function pCommaSeparated(array $nodes): string { argument
486 return $this->pImplode($nodes, ', ');
494 * @param Node[] $nodes Array of Nodes to be printed
499 protected function pCommaSeparatedMultiline(array $nodes, bool $trailingComma): string { argument
503 $lastIdx = count($nodes) - 1;
504 foreach ($nodes as $idx => $node) {
769 * @param Node[] $nodes New nodes
780 array $nodes, array $origNodes, int &$pos, int $indentAdjustment, argument
783 $diff = $this->nodeListDiffer->diffWithReplacements($origNodes, $nodes);
800 if ($isStmtList && \count($origNodes) === 1 && \count($nodes) !== 1) {
1240 * @param (Node|null)[] $nodes Node list
1244 protected function isMultiline(array $nodes): bool { argument
1245 if (\count($nodes) < 2) {
1250 foreach ($nodes as $node) {