parameters: (tokens, separator='\n')
return_statement: return separator.join(str(l) for l in lines)
docstring: Converts tokens to text respecting line position (disrespecting column).
docstring_summary: Converts tokens to text respecting line position (disrespecting column).
docstring_tokens: Converts tokens to text respecting line position ( disrespecting column ) .
function: def _stringify_tokens(tokens, separator='\n'):
    # type: (Sequence[cindex.Token], Text) -> Text
    """Converts tokens to text respecting line position (disrespecting column)."""
    previous = OutputLine(0, [])  # not used in output
    lines = []  # type: List[OutputLine]
  
    for _, group in itertools.groupby(tokens, lambda t: t.location.line):
      group_list = list(group)
      line = OutputLine(previous.next_tab, group_list)
  
      lines.append(line)
      previous = line
  
    return separator.join(str(l) for l in lines)
function_tokens: def _stringify_tokens ( tokens , separator = '\n' ) : # type: (Sequence[cindex.Token], Text) -> Text previous = OutputLine ( 0 , [ ] ) # not used in output lines = [ ] # type: List[OutputLine] for _ , group in itertools . groupby ( tokens , lambda t : t . location . line ) : group_list = list ( group ) line = OutputLine ( previous . next_tab , group_list ) lines . append ( line ) previous = line return separator . join ( str ( l ) for l in lines )