def DefaultLeafVisit(self, leaf):
    if leaf.type in _WHITESPACE_TOKENS:
      self._StartNewLine()
    elif leaf.type != grammar_token.COMMENT or leaf.value.strip():
      if leaf.value == ';':
        # Split up multiple statements on one line.
        self._StartNewLine()
      else:
        # Add non-whitespace tokens and comments that aren't empty.
        self._cur_unwrapped_line.AppendNode(leaf)
Default visitor for tree leaves.
dataset/ETHPy150Open google/yapf/yapf/yapflib/pytree_unwrapper.py/PyTreeUnwrapper.DefaultLeafVisit