Home
last modified time | relevance | path

Searched refs:col_offset (Results 1 - 25 of 30) sorted by relevance

12

/third_party/python/Include/internal/
H A Dpycore_ast.h334 int col_offset; member
491 int col_offset; member
515 int col_offset; member
535 int col_offset; member
544 int col_offset; member
553 int col_offset; member
616 int col_offset; member
644 col_offset, int end_lineno, int end_col_offset,
649 type_comment, int lineno, int col_offset, int
654 col_offset, in
[all...]
H A Dpycore_ast_state.h173 PyObject *col_offset; member
/third_party/python/Parser/
H A Dpegen_errors.c68 Py_ssize_t col_offset = -1; in _Pypegen_tokenizer_error() local
100 col_offset = p->tok->cur - p->tok->buf - 1; in _Pypegen_tokenizer_error()
109 col_offset >= 0 ? col_offset : 0, in _Pypegen_tokenizer_error()
220 Py_ssize_t col_offset; in _PyPegen_raise_error() local
222 if (t->col_offset == -1) { in _PyPegen_raise_error()
224 col_offset = 0; in _PyPegen_raise_error()
227 col_offset = Py_SAFE_DOWNCAST(p->tok->cur - start, intptr_t, int); in _PyPegen_raise_error()
230 col_offset = t->col_offset in _PyPegen_raise_error()
285 _PyPegen_raise_error_known_location(Parser *p, PyObject *errtype, Py_ssize_t lineno, Py_ssize_t col_offset, Py_ssize_t end_lineno, Py_ssize_t end_col_offset, const char *errmsg, va_list va) _PyPegen_raise_error_known_location() argument
[all...]
H A Dpegen.h40 int lineno, col_offset, end_lineno, end_col_offset; member
145 Py_ssize_t _PyPegen_byte_offset_to_character_offset(PyObject *line, Py_ssize_t col_offset);
159 Py_ssize_t lineno, Py_ssize_t col_offset,
165 Py_ssize_t lineno, Py_ssize_t col_offset, in RAISE_ERROR_KNOWN_LOCATION()
171 Py_ssize_t _col_offset = (col_offset == CURRENT_POS ? CURRENT_POS : col_offset + 1); in RAISE_ERROR_KNOWN_LOCATION()
180 RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, (b)->end_lineno, (b)->end_col_offset, msg, ##__VA_ARGS__)
182 RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, (a)->end_lineno, (a)->end_col_offset, msg, ##__VA_ARGS__)
184 RAISE_ERROR_KNOWN_LOCATION(p, PyExc_SyntaxError, (a)->lineno, (a)->col_offset, CURRENT_POS, CURRENT_POS, msg, ##__VA_ARGS__)
243 #define EXTRA_EXPR(head, tail) head->lineno, (head)->col_offset, (tai
164 RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype, Py_ssize_t lineno, Py_ssize_t col_offset, Py_ssize_t end_lineno, Py_ssize_t end_col_offset, const char *errmsg, ...) RAISE_ERROR_KNOWN_LOCATION() argument
[all...]
H A Dpegen.c21 _PyPegen_byte_offset_to_character_offset(PyObject *line, Py_ssize_t col_offset) in _PyPegen_byte_offset_to_character_offset() argument
28 if (col_offset > len + 1) { in _PyPegen_byte_offset_to_character_offset()
29 col_offset = len + 1; in _PyPegen_byte_offset_to_character_offset()
31 assert(col_offset >= 0); in _PyPegen_byte_offset_to_character_offset()
32 PyObject *text = PyUnicode_DecodeUTF8(str, col_offset, "replace"); in _PyPegen_byte_offset_to_character_offset()
169 int col_offset = (start != NULL && start >= line_start) ? (int)(start - line_start) : -1; in initialize_token() local
173 token->col_offset = p->tok->lineno == p->starting_lineno ? p->starting_col_offset + col_offset : col_offset; in initialize_token()
525 return _PyAST_Name(id, Load, t->lineno, t->col_offset, in _PyPegen_name_from_token()
[all...]
H A Daction_helpers.c211 _PyPegen_alias_for_star(Parser *p, int lineno, int col_offset, int end_lineno, in _PyPegen_alias_for_star() argument
221 return _PyAST_alias(str, NULL, lineno, col_offset, end_lineno, end_col_offset, arena); in _PyPegen_alias_for_star()
773 function_def->col_offset, function_def->end_lineno, function_def->end_col_offset, in _PyPegen_function_def_decorators()
782 function_def->col_offset, function_def->end_lineno, in _PyPegen_function_def_decorators()
794 class_def->lineno, class_def->col_offset, class_def->end_lineno, in _PyPegen_class_def_decorators()
947 first->col_offset, last->end_lineno, in _PyPegen_concatenate_strings()
1037 a->lineno, a->col_offset, a->end_lineno, a->end_col_offset, in _PyPegen_add_type_comment_to_arg()
1157 int lineno, int col_offset, int end_lineno, in _PyPegen_collect_call_seqs()
1163 return _PyAST_Call(_PyPegen_dummy_name(p), a, NULL, lineno, col_offset, in _PyPegen_collect_call_seqs()
1186 col_offset, end_linen in _PyPegen_collect_call_seqs()
1156 _PyPegen_collect_call_seqs(Parser *p, asdl_expr_seq *a, asdl_seq *b, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyPegen_collect_call_seqs() argument
[all...]
H A Dstring_parser.c423 p2->starting_col_offset = lines != 0 ? cols : t->col_offset + cols; in fstring_compile_expr()
831 first_token->col_offset, in fstring_find_expr()
1077 return _PyAST_Constant(s, kind, first_token->lineno, first_token->col_offset, in make_str_node_and_del()
1236 return _PyAST_JoinedStr(seq, first_token->lineno, first_token->col_offset, in _PyPegen_FstringParser_Finish()
H A Dparser.c1414 int _start_col_offset = p->tokens[_mark]->col_offset; in statement_newline_rule()
1643 int _start_col_offset = p->tokens[_mark]->col_offset; in simple_stmt_rule()
2191 int _start_col_offset = p->tokens[_mark]->col_offset; in assignment_rule()
2813 int _start_col_offset = p->tokens[_mark]->col_offset; in return_stmt_rule()
2878 int _start_col_offset = p->tokens[_mark]->col_offset; in raise_stmt_rule()
2979 int _start_col_offset = p->tokens[_mark]->col_offset; in global_stmt_rule()
3044 int _start_col_offset = p->tokens[_mark]->col_offset; in nonlocal_stmt_rule()
3109 int _start_col_offset = p->tokens[_mark]->col_offset; in del_stmt_rule()
3195 int _start_col_offset = p->tokens[_mark]->col_offset; in yield_stmt_rule()
3257 int _start_col_offset = p->tokens[_mark]->col_offset; in assert_stmt_rule()
[all...]
/third_party/python/Python/
H A DPython-ast.c186 Py_CLEAR(state->col_offset); in _PyAST_Fini()
293 if ((state->col_offset = PyUnicode_InternFromString("col_offset")) == NULL) return 0; in init_identifiers()
393 "col_offset",
520 "col_offset",
651 "col_offset",
674 "col_offset",
686 "col_offset",
697 "col_offset",
718 "col_offset",
1959 _PyAST_FunctionDef(identifier name, arguments_ty args, asdl_stmt_seq * body, asdl_expr_seq * decorator_list, expr_ty returns, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_FunctionDef() argument
1993 _PyAST_AsyncFunctionDef(identifier name, arguments_ty args, asdl_stmt_seq * body, asdl_expr_seq * decorator_list, expr_ty returns, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_AsyncFunctionDef() argument
2027 _PyAST_ClassDef(identifier name, asdl_expr_seq * bases, asdl_keyword_seq * keywords, asdl_stmt_seq * body, asdl_expr_seq * decorator_list, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_ClassDef() argument
2055 _PyAST_Return(expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Return() argument
2072 _PyAST_Delete(asdl_expr_seq * targets, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Delete() argument
2089 _PyAST_Assign(asdl_expr_seq * targets, expr_ty value, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Assign() argument
2114 _PyAST_AugAssign(expr_ty target, operator_ty op, expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_AugAssign() argument
2148 _PyAST_AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int simple, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_AnnAssign() argument
2179 _PyAST_For(expr_ty target, expr_ty iter, asdl_stmt_seq * body, asdl_stmt_seq * orelse, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_For() argument
2211 _PyAST_AsyncFor(expr_ty target, expr_ty iter, asdl_stmt_seq * body, asdl_stmt_seq * orelse, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_AsyncFor() argument
2243 _PyAST_While(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_While() argument
2268 _PyAST_If(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_If() argument
2293 _PyAST_With(asdl_withitem_seq * items, asdl_stmt_seq * body, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_With() argument
2313 _PyAST_AsyncWith(asdl_withitem_seq * items, asdl_stmt_seq * body, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_AsyncWith() argument
2333 _PyAST_Match(expr_ty subject, asdl_match_case_seq * cases, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Match() argument
2356 _PyAST_Raise(expr_ty exc, expr_ty cause, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Raise() argument
2374 _PyAST_Try(asdl_stmt_seq * body, asdl_excepthandler_seq * handlers, asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Try() argument
2395 _PyAST_TryStar(asdl_stmt_seq * body, asdl_excepthandler_seq * handlers, asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_TryStar() argument
2417 _PyAST_Assert(expr_ty test, expr_ty msg, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Assert() argument
2440 _PyAST_Import(asdl_alias_seq * names, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Import() argument
2457 _PyAST_ImportFrom(identifier module, asdl_alias_seq * names, int level, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_ImportFrom() argument
2477 _PyAST_Global(asdl_identifier_seq * names, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Global() argument
2494 _PyAST_Nonlocal(asdl_identifier_seq * names, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Nonlocal() argument
2511 _PyAST_Expr(expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Expr() argument
2533 _PyAST_Pass(int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Pass() argument
2549 _PyAST_Break(int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Break() argument
2565 _PyAST_Continue(int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Continue() argument
2581 _PyAST_BoolOp(boolop_ty op, asdl_expr_seq * values, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_BoolOp() argument
2604 _PyAST_NamedExpr(expr_ty target, expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_NamedExpr() argument
2632 _PyAST_BinOp(expr_ty left, operator_ty op, expr_ty right, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_BinOp() argument
2666 _PyAST_UnaryOp(unaryop_ty op, expr_ty operand, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_UnaryOp() argument
2694 _PyAST_Lambda(arguments_ty args, expr_ty body, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Lambda() argument
2722 _PyAST_IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_IfExp() argument
2756 _PyAST_Dict(asdl_expr_seq * keys, asdl_expr_seq * values, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Dict() argument
2774 _PyAST_Set(asdl_expr_seq * elts, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Set() argument
2791 _PyAST_ListComp(expr_ty elt, asdl_comprehension_seq * generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_ListComp() argument
2815 _PyAST_SetComp(expr_ty elt, asdl_comprehension_seq * generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_SetComp() argument
2839 _PyAST_DictComp(expr_ty key, expr_ty value, asdl_comprehension_seq * generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_DictComp() argument
2869 _PyAST_GeneratorExp(expr_ty elt, asdl_comprehension_seq * generators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_GeneratorExp() argument
2893 _PyAST_Await(expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Await() argument
2915 _PyAST_Yield(expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Yield() argument
2932 _PyAST_YieldFrom(expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_YieldFrom() argument
2954 _PyAST_Compare(expr_ty left, asdl_int_seq * ops, asdl_expr_seq * comparators, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Compare() argument
2979 _PyAST_Call(expr_ty func, asdl_expr_seq * args, asdl_keyword_seq * keywords, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Call() argument
3004 _PyAST_FormattedValue(expr_ty value, int conversion, expr_ty format_spec, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_FormattedValue() argument
3029 _PyAST_JoinedStr(asdl_expr_seq * values, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_JoinedStr() argument
3046 _PyAST_Constant(constant value, string kind, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Constant() argument
3069 _PyAST_Attribute(expr_ty value, identifier attr, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Attribute() argument
3104 _PyAST_Subscript(expr_ty value, expr_ty slice, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Subscript() argument
3139 _PyAST_Starred(expr_ty value, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Starred() argument
3167 _PyAST_Name(identifier id, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Name() argument
3195 _PyAST_List(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_List() argument
3218 _PyAST_Tuple(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Tuple() argument
3241 _PyAST_Slice(expr_ty lower, expr_ty upper, expr_ty step, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Slice() argument
3285 _PyAST_ExceptHandler(expr_ty type, identifier name, asdl_stmt_seq * body, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_ExceptHandler() argument
3325 _PyAST_arg(identifier arg, expr_ty annotation, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_arg() argument
3348 _PyAST_keyword(identifier arg, expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_keyword() argument
3370 _PyAST_alias(identifier name, identifier asname, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_alias() argument
3428 _PyAST_MatchValue(expr_ty value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchValue() argument
3450 _PyAST_MatchSingleton(constant value, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchSingleton() argument
3472 _PyAST_MatchSequence(asdl_pattern_seq * patterns, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchSequence() argument
3489 _PyAST_MatchMapping(asdl_expr_seq * keys, asdl_pattern_seq * patterns, identifier rest, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchMapping() argument
3509 _PyAST_MatchClass(expr_ty cls, asdl_pattern_seq * patterns, asdl_identifier_seq * kwd_attrs, asdl_pattern_seq * kwd_patterns, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchClass() argument
3536 _PyAST_MatchStar(identifier name, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchStar() argument
3553 _PyAST_MatchAs(pattern_ty pattern, identifier name, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchAs() argument
3571 _PyAST_MatchOr(asdl_pattern_seq * patterns, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_MatchOr() argument
5733 int col_offset; obj2ast_stmt() local
8150 int col_offset; obj2ast_expr() local
10327 int col_offset; obj2ast_excepthandler() local
10744 int col_offset; obj2ast_arg() local
10883 int col_offset; obj2ast_keyword() local
11005 int col_offset; obj2ast_alias() local
11264 int col_offset; obj2ast_pattern() local
[all...]
H A Dsymtable.c53 (x)->lineno, (x)->col_offset, (x)->end_lineno, (x)->end_col_offset
60 void *key, int lineno, int col_offset, in ste_new()
94 ste->ste_col_offset = col_offset; in ste_new()
207 int lineno, int col_offset,
969 void *ast, int lineno, int col_offset, in symtable_enter_block()
974 ste = ste_new(st, name, block, ast, lineno, col_offset, end_lineno, end_col_offset); in symtable_enter_block()
1024 int lineno, int col_offset, int end_lineno, int end_col_offset) in symtable_add_def_helper()
1041 lineno, col_offset + 1, in symtable_add_def_helper()
1063 lineno, col_offset + 1, in symtable_add_def_helper()
1110 int lineno, int col_offset, in in symtable_add_def()
59 ste_new(struct symtable *st, identifier name, _Py_block_ty block, void *key, int lineno, int col_offset, int end_lineno, int end_col_offset) ste_new() argument
968 symtable_enter_block(struct symtable *st, identifier name, _Py_block_ty block, void *ast, int lineno, int col_offset, int end_lineno, int end_col_offset) symtable_enter_block() argument
1023 symtable_add_def_helper(struct symtable *st, PyObject *name, int flag, struct _symtable_entry *ste, int lineno, int col_offset, int end_lineno, int end_col_offset) symtable_add_def_helper() argument
1109 symtable_add_def(struct symtable *st, PyObject *name, int flag, int lineno, int col_offset, int end_lineno, int end_col_offset) symtable_add_def() argument
1166 symtable_record_directive(struct symtable *st, identifier name, int lineno, int col_offset, int end_lineno, int end_col_offset) symtable_record_directive() argument
1966 int col_offset = a->col_offset; symtable_visit_alias() local
[all...]
H A Dfuture.c44 PyErr_SyntaxLocationObject(filename, s->lineno, s->col_offset + 1); in future_check_features()
49 PyErr_SyntaxLocationObject(filename, s->lineno, s->col_offset + 1); in future_check_features()
99 PyErr_SyntaxLocationObject(filename, s->lineno, s->col_offset); in future_parse()
H A DPython-tokenize.c92 int col_offset = -1; in tokenizeriter_next() local
95 col_offset = (int)(start - line_start); in tokenizeriter_next()
101 return Py_BuildValue("(NiiiiiN)", str, type, lineno, end_lineno, col_offset, end_col_offset, line); in tokenizeriter_next()
H A Derrors.c1610 PyErr_SyntaxLocationObjectEx(PyObject *filename, int lineno, int col_offset, in PyErr_SyntaxLocationObjectEx() argument
1631 if (col_offset >= 0) { in PyErr_SyntaxLocationObjectEx()
1632 tmp = PyLong_FromLong(col_offset); in PyErr_SyntaxLocationObjectEx()
1719 PyErr_SyntaxLocationObject(PyObject *filename, int lineno, int col_offset) { in PyErr_SyntaxLocationObject() argument
1720 PyErr_SyntaxLocationObjectEx(filename, lineno, col_offset, lineno, -1); in PyErr_SyntaxLocationObject()
1724 PyErr_RangedSyntaxLocationObject(PyObject *filename, int lineno, int col_offset, in PyErr_RangedSyntaxLocationObject() argument
1726 PyErr_SyntaxLocationObjectEx(filename, lineno, col_offset, end_lineno, end_col_offset); in PyErr_RangedSyntaxLocationObject()
1730 PyErr_SyntaxLocationEx(const char *filename, int lineno, int col_offset) in PyErr_SyntaxLocationEx() argument
1743 PyErr_SyntaxLocationObject(fileobj, lineno, col_offset); in PyErr_SyntaxLocationEx()
H A Dast.c33 (node->col_offset < 0 && node->col_offset != node->end_col_offset)) { \
36 node->col_offset, node->end_col_offset, node->lineno, node->end_lineno); \
39 if (node->lineno == node->end_lineno && node->col_offset > node->end_col_offset) { \
42 node->lineno, node->col_offset, node->end_col_offset); \
H A Dast_opt.c384 arg->lineno, arg->col_offset, in parse_format()
433 node->lineno, node->col_offset, in optimize_format()
671 expr_ty expr = _PyAST_JoinedStr(values, st->lineno, st->col_offset, in astfold_body()
/third_party/python/Lib/test/
H A Dtest_fstring.py113 self.assertEqual(binop.col_offset, 3)
114 self.assertEqual(binop.left.col_offset, 3)
115 self.assertEqual(binop.right.col_offset, 7)
153 self.assertEqual(binop1.col_offset, 8)
154 self.assertEqual(binop1.left.col_offset, 8)
155 self.assertEqual(binop1.right.col_offset, 12)
165 self.assertEqual(binop2.col_offset, 23)
166 self.assertEqual(binop2.left.col_offset, 23)
167 self.assertEqual(binop2.right.col_offset, 27)
196 self.assertEqual(binop.col_offset,
[all...]
H A Dtest_ast.py21 if hasattr(t, 'lineno') and hasattr(t, 'col_offset'):
22 result.append((t.lineno, t.col_offset))
125 # Multiline generator expression (test for .lineno & .col_offset)
209 # Multiline dict (test for .lineno & .col_offset)
280 node_pos = (ast_node.lineno, ast_node.col_offset)
282 parent_pos = (ast_node.lineno, ast_node.col_offset)
288 first_pos = (value[0].lineno, value[0].col_offset)
356 for col_offset, end_col_offset in invalid_col_offsets:
357 with self.subTest(f"Check invalid col_offset {col_offset}
[all...]
/third_party/python/Include/cpython/
H A Dpyerrors.h141 int col_offset);
146 int col_offset,
/third_party/ffmpeg/libavformat/
H A Daaxdec.c226 int64_t col_offset; in aax_read_header() local
234 col_offset = a->xcolumns[c].offset; in aax_read_header()
238 data_offset = a->schema_offset + col_offset; in aax_read_header()
240 data_offset = a->rows_offset + r * a->row_width + col_offset; in aax_read_header()
/third_party/mesa3d/src/panfrost/shared/test/
H A Dtest-tiling.cpp65 unsigned col_offset = (tile_x * tilesize * tilesize) * blocksize;
68 return row_offset + col_offset + block_offset;
/third_party/python/Lib/
H A Dast.py182 Copy source location (`lineno`, `col_offset`, `end_lineno`, and `end_col_offset`
185 for attr in 'lineno', 'col_offset', 'end_lineno', 'end_col_offset':
200 col_offset attributes for every node that supports them. This is rather
205 def _fix(node, lineno, col_offset, end_lineno, end_col_offset):
216 if 'col_offset' in node._attributes:
217 if not hasattr(node, 'col_offset'):
218 node.col_offset = col_offset
220 col_offset = node.col_offset
[all...]
H A Dpyclbr.py234 if node.col_offset != 0:
249 if node.col_offset != 0:
H A Dtokenize.py183 col_offset = col - self.prev_col
184 if col_offset:
185 self.tokens.append(" " * col_offset)
/third_party/python/Lib/lib2to3/pgen2/
H A Dtokenize.py181 col_offset = col - self.prev_col
182 if col_offset:
183 self.tokens.append(" " * col_offset)
/third_party/python/Include/
H A Dpyerrors.h246 int col_offset);

Completed in 48 milliseconds

12