class_docstr: An advanced form of parsing a file faster. Unfortunately comes with huge
  side effects. It changes the given module.
class_docstr_tok: ["An","advanced","form","of","parsing","a","file","faster",".","Unfortunately","comes","with","huge","side","effects",".","It","changes","the","given","module","."]
docstr: Parses at least until the given line, but might just parse more until a
  valid state is reached.
code: def _parse(self, until_line):
      """
      Parses at least until the given line, but might just parse more until a
      valid state is reached.
      """
      last_until_line = 0
      while until_line > self._nodes_tree.parsed_until_line:
          node = self._try_parse_part(until_line)
          nodes = node.children
  
          self._nodes_tree.add_parsed_nodes(
              nodes, self._keyword_token_indents
          )
          if self._replace_tos_indent is not None:
              self._nodes_tree.indents[-1] = self._replace_tos_indent
  
          LOG.debug(
              "parse_part from %s to %s (to %s in part parser)",
              nodes[0].get_start_pos_of_prefix()[0],
              self._nodes_tree.parsed_until_line,
              node.end_pos[0] - 1,
          )
          # Since the tokenizer sometimes has bugs, we cannot be sure that
          # this loop terminates. Therefore assert that there's always a
          # change.
          assert (
              last_until_line != self._nodes_tree.parsed_until_line
          ), last_until_line
          last_until_line = self._nodes_tree.parsed_until_line
  
imports: import re
  import difflib
  from collections import namedtuple
  import logging
  from parso.utils import split_lines
  from parso.python.parser import Parser
  from parso.python.tree import EndMarker
  from parso.python.tokenize import PythonToken, BOM_UTF8_STRING
  from parso.python.token import PythonTokenTypes
label_desc: Use image node_id 7 for calling the DiffParser obj's underlying member method code with example usage: obj._parse(until_line) without return types