parameters: (self, tree)
return_statement: return output
docstring: Return a list of string reprs from a nested list of referrers.
docstring_summary: Return a list of string reprs from a nested list of referrers.
docstring_tokens: Return a list of string reprs from a nested list of referrers .
function: def format(self, tree):
          """Return a list of string reprs from a nested list of referrers."""
          output = []
          def ascend(branch, depth=1):
              for parent, grandparents in branch:
                  output.append(("    " * depth) + self._format(parent))
                  if grandparents:
                      ascend(grandparents, depth + 1)
          ascend(tree)
          return output
function_tokens: def format ( self , tree ) : output = [ ] def ascend ( branch , depth = 1 ) : for parent , grandparents in branch : output . append ( ( "    " * depth ) + self . _format ( parent ) ) if grandparents : ascend ( grandparents , depth + 1 ) ascend ( tree ) return output