Generator yielding all matches for this pattern. Default implementation for non-wildcard patterns.
(self, nodes: list[NL])
| 571 | return self.match(nodes[0], results) |
| 572 | |
| 573 | def generate_matches(self, nodes: list[NL]) -> Iterator[tuple[int, _Results]]: |
| 574 | """ |
| 575 | Generator yielding all matches for this pattern. |
| 576 | |
| 577 | Default implementation for non-wildcard patterns. |
| 578 | """ |
| 579 | r: _Results = {} |
| 580 | if nodes and self.match(nodes[0], r): |
| 581 | yield 1, r |
| 582 | |
| 583 | |
| 584 | class LeafPattern(BasePattern): |
no test coverage detected