| @@ 122-126 (lines=5) @@ | ||
| 119 | $walker = $this->walkQuery($field, $current, $visitor); |
|
| 120 | $next = $walker->current(); |
|
| 121 | ||
| 122 | while ($walker->valid()) { |
|
| 123 | $received = (yield $next); |
|
| 124 | $carry = $visitor->reduce($carry, $received, $this->context); |
|
| 125 | $next = $walker->send($received); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | else { |
|
| 129 | $type = $this->getType($node, $current); |
|
| @@ 137-141 (lines=5) @@ | ||
| 134 | $walker = $this->walkQuery($field, $ast, $visitor); |
|
| 135 | $next = $walker->current(); |
|
| 136 | ||
| 137 | while ($walker->valid()) { |
|
| 138 | $received = (yield $next); |
|
| 139 | $carry = $visitor->reduce($carry, $received, $this->context); |
|
| 140 | $next = $walker->send($received); |
|
| 141 | } |
|
| 142 | } |
|
| 143 | } |
|
| 144 | } |
|