MCPcopy
hub / github.com/psf/black / leaves

Method leaves

src/blib2to3/pytree.py:210–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208 return self.parent.prev_sibling_map[id(self)]
209
210 def leaves(self) -> Iterator["Leaf"]:
211 for child in self.children:
212 yield from child.leaves()
213
214 def depth(self) -> int:
215 if self.parent is None:

Calls

no outgoing calls

Tested by

no test coverage detected