def lex_document(self, cli, document):
        lines = list(split_lines(self._get_tokens(cli, document.text)))

        def get_line(lineno):
            try:
                return lines[lineno]
            except __HOLE__:
                return []

        return get_line
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/contrib/regular_languages/lexer.py/GrammarLexer.lex_document