Lines Matching refs:col_offset
21 _PyPegen_byte_offset_to_character_offset(PyObject *line, Py_ssize_t col_offset)
28 if (col_offset > len + 1) {
29 col_offset = len + 1;
31 assert(col_offset >= 0);
32 PyObject *text = PyUnicode_DecodeUTF8(str, col_offset, "replace");
169 int col_offset = (start != NULL && start >= line_start) ? (int)(start - line_start) : -1;
173 token->col_offset = p->tok->lineno == p->starting_lineno ? p->starting_col_offset + col_offset : col_offset;
525 return _PyAST_Name(id, Load, t->lineno, t->col_offset, t->end_lineno,
670 t->lineno, -1 /* col_offset */,
686 return _PyAST_Constant(c, NULL, t->lineno, t->col_offset, t->end_lineno,