parameters: (self)
docstring: Generator that returns the leaves of the tree
docstring_summary: Generator that returns the leaves of the tree
docstring_tokens: Generator that returns the leaves of the tree
function: def leaves(self):
          "Generator that returns the leaves of the tree"
          for child in self.children:
              yield from child.leaves()
          if not self.children:
              yield self
function_tokens: def leaves ( self ) : for child in self . children : yield from child . leaves ( ) if not self . children : yield self