(self, node)
return b''.join(spaces_without_semis)
Skips semicolons between statements.

        Args:
          node: The Node containing the semis.

        Returns:
          The preceding spaces up to any semicolons, without the semicolons.
Skips semicolons between statements.
Skips semicolons between statements .
def _get_semis(self, node):
        """Skips semicolons between statements.

        Args:
          node: The Node containing the semis.

        Returns:
          The preceding spaces up to any semicolons, without the semicolons.
        """
        spaces_without_semis = []
        while True:
            spaces = self._get_code_for_spaces(node)
            if self._tokens[self._pos].matches(lexer.TokSymbol(b';')):
                self._pos += 1
                # Insert a space where the semi was to prevent 'a;b' from
                # becoming 'ab'.
                # TODO: This is an extraneous space in cases where the
                # semicolon had a space before or after it.
                spaces_without_semis.append(spaces + b' ')
            else:
                spaces_without_semis.append(spaces)
                break
        return b''.join(spaces_without_semis)
def _get_semis ( self , node ) : spaces_without_semis = [ ] while True : spaces = self . _get_code_for_spaces ( node ) if self . _tokens [ self . _pos ] . matches ( lexer . TokSymbol ( b';' ) ) : self . _pos += 1 # Insert a space where the semi was to prevent 'a;b' from # becoming 'ab'. # TODO: This is an extraneous space in cases where the # semicolon had a space before or after it. spaces_without_semis . append ( spaces + b' ' ) else : spaces_without_semis . append ( spaces ) break return b'' . join ( spaces_without_semis )