Lines Matching refs:error_line
272 PyObject *error_line = NULL; in _PyPegen_raise_error_known_location() local
304 error_line = get_error_line_from_tokenizer_buffers(p, lineno); in _PyPegen_raise_error_known_location()
307 error_line = _PyErr_ProgramDecodedTextObject(p->tok->filename, in _PyPegen_raise_error_known_location()
311 if (!error_line) { in _PyPegen_raise_error_known_location()
323 error_line = PyUnicode_DecodeUTF8(p->tok->buf, size, "replace"); in _PyPegen_raise_error_known_location()
326 error_line = get_error_line_from_tokenizer_buffers(p, lineno); in _PyPegen_raise_error_known_location()
329 error_line = PyUnicode_FromStringAndSize("", 0); in _PyPegen_raise_error_known_location()
331 if (!error_line) { in _PyPegen_raise_error_known_location()
345 col_number = _PyPegen_byte_offset_to_character_offset(error_line, col_offset); in _PyPegen_raise_error_known_location()
350 … Py_ssize_t end_col_offset = _PyPegen_byte_offset_to_character_offset(error_line, end_col_number); in _PyPegen_raise_error_known_location()
358 …tmp = Py_BuildValue("(OiiNii)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_… in _PyPegen_raise_error_known_location()
378 Py_XDECREF(error_line); in _PyPegen_raise_error_known_location()