Lines Matching refs:error_line
459 PyObject *error_line = NULL; in _PyPegen_raise_error_known_location() local
491 error_line = get_error_line(p, lineno); in _PyPegen_raise_error_known_location()
494 error_line = _PyErr_ProgramDecodedTextObject(p->tok->filename, in _PyPegen_raise_error_known_location()
498 if (!error_line) { in _PyPegen_raise_error_known_location()
510 error_line = PyUnicode_DecodeUTF8(p->tok->buf, size, "replace"); in _PyPegen_raise_error_known_location()
513 error_line = get_error_line(p, lineno); in _PyPegen_raise_error_known_location()
516 error_line = PyUnicode_FromStringAndSize("", 0); in _PyPegen_raise_error_known_location()
518 if (!error_line) { in _PyPegen_raise_error_known_location()
532 col_number = byte_offset_to_character_offset(error_line, col_offset); in _PyPegen_raise_error_known_location()
534 byte_offset_to_character_offset(error_line, end_col_offset) : in _PyPegen_raise_error_known_location()
537 …tmp = Py_BuildValue("(OiiNii)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_… in _PyPegen_raise_error_known_location()
557 Py_XDECREF(error_line); in _PyPegen_raise_error_known_location()