Lines Matching refs:nodes
201 public function nameFromPath(array $nodes, ModuleLanguageInterface $language): string argument
204 if (count($nodes) === 1) {
205 return $this->reflexivePronoun($nodes[0]);
214 $pattern = $this->components($nodes);
218 … return $this->legacyNameAlgorithm(implode('', $pattern), $nodes[0], $nodes[count($nodes) - 1]);
222 $relationships = $this->matchRelationships($nodes, $pattern, $relationships);
257 private function components(array $nodes): array argument
261 $count = count($nodes);
264 $prev = $nodes[$i - 1];
265 $family = $nodes[$i];
266 $next = $nodes[$i + 1];
287 protected function matchRelationships(array $nodes, array $pattern, array $relationships): array argument
295 $path_slice = array_slice($nodes, $start * 2, $length * 2 + 1);
300 $nodes_before = array_slice($nodes, 0, $start * 2 + 1);
304 $nodes_after = array_slice($nodes, ($start + $length) * 2);