def generate_matches(self, nodes: list[NL]) -> Iterator[tuple[int, _Results]]:
        """
        Generator yielding all matches for this pattern.

        Default implementation for non-wildcard patterns.
        """
        r: _Results = {}
        if nodes and self.match(nodes[0], r):
            yield 1, r

        Generator yielding all matches for this pattern.

        Default implementation for non-wildcard patterns.
        
src/blib2to3/pytree.py