Lines Matching refs:nodes

106     public function match(array $nodes, array $patterns): array|null  argument
111 if (!$matcher($nodes, $patterns, $captures)) {
128 $this->matchers[] = static fn (array $nodes): bool => count($nodes) > 2 && $nodes[2]
130 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
140 $this->matchers[] = static fn (array $nodes): bool => $nodes[0]
142 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
164 … $this->matchers[] = static function (array &$nodes, array &$patterns) use ($relationships): bool {
166 $nodes = array_slice($nodes, 2);
205 …$this->matchers[] = static function (array &$nodes, array &$patterns, array &$captures) use ($rela…
206 $limit = min(intdiv(count($nodes), 2), count($patterns));
215 $nodes = array_slice($nodes, 2 * $generations);
277 $this->matchers[] = static function (array $nodes) use ($status): bool {
278 $family = $nodes[1] ?? null;
336 $this->matchers[] = static fn (array $nodes): bool => $nodes[0]->sex() === $sex;
346 $this->matchers[] = static fn (array $nodes): bool => count($nodes) > 2 && $nodes[2]
348 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
358 $this->matchers[] = static fn (array $nodes): bool => $nodes[0]
360 …->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->att…
402 $this->matchers[] = static function (array $nodes): bool {
403 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
404 …$date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
459 … $this->matchers[] = static function (array &$nodes, array &$patterns, array &$captures): bool {
486 $nodes = array_slice($nodes, 2 * (2 * $n + 1));
501 $this->matchers[] = static function (array $nodes): bool {
502 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
503 …$date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
529 $this->matchers[] = static function (array $nodes): bool {
530 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
531 …$date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…