Searched refs:asdl_seq_LEN (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Python/ |
D | ast_unparse.c | 127 value_count = asdl_seq_LEN(values); in append_ast_boolop() 219 posonlyarg_count = asdl_seq_LEN(args->posonlyargs); in append_ast_args() 220 arg_count = asdl_seq_LEN(args->args); in append_ast_args() 221 default_count = asdl_seq_LEN(args->defaults); in append_ast_args() 241 if (args->vararg || asdl_seq_LEN(args->kwonlyargs)) { in append_ast_args() 250 arg_count = asdl_seq_LEN(args->kwonlyargs); in append_ast_args() 251 default_count = asdl_seq_LEN(args->kw_defaults); in append_ast_args() 280 Py_ssize_t n_positional = (asdl_seq_LEN(e->v.Lambda.args->args) + in append_ast_lambda() 281 asdl_seq_LEN(e->v.Lambda.args->posonlyargs)); in append_ast_lambda() 310 value_count = asdl_seq_LEN(e->v.Dict.values); in append_ast_dict() [all …]
|
D | future.c | 23 for (i = 0; i < asdl_seq_LEN(names); i++) { in future_check_features() 71 if (asdl_seq_LEN(mod->v.Module.body) == 0) in future_parse() 86 for (; i < asdl_seq_LEN(mod->v.Module.body); i++) { in future_parse()
|
D | compile.c | 1530 for (_i = 0; _i < asdl_seq_LEN(seq); _i++) { \ 1540 for (_i = 0; _i < asdl_seq_LEN(seq); _i++) { \ 1568 for (i = 0; i < asdl_seq_LEN(stmts); i++) { in find_ann() 1596 for (j = 0; j < asdl_seq_LEN(st->v.Try.handlers); j++) { in find_ann() 1791 if (c->u->u_scope_type == COMPILER_SCOPE_MODULE && asdl_seq_LEN(stmts)) { in compiler_body() 1799 if (!asdl_seq_LEN(stmts)) in compiler_body() 1813 for (; i < asdl_seq_LEN(stmts); i++) in compiler_body() 1955 for (i = 0; i < asdl_seq_LEN(decos); i++) { in compiler_decorators() 1972 for (i = 0; i < asdl_seq_LEN(kwonlyargs); i++) { in compiler_visit_kwonlydefaults() 2054 for (i = 0; i < asdl_seq_LEN(args); i++) { in compiler_visit_argannotations() [all …]
|
D | ast_opt.c | 46 asdl_seq_LEN(arg->v.Compare.ops) == 1) { in fold_unaryop() 276 for (int i = 0; i < asdl_seq_LEN(elts); i++) { in make_const_tuple() 283 PyObject *newval = PyTuple_New(asdl_seq_LEN(elts)); in make_const_tuple() 288 for (int i = 0; i < asdl_seq_LEN(elts); i++) { in make_const_tuple() 341 Py_ssize_t n = asdl_seq_LEN(elts); in fold_iter() 379 i = asdl_seq_LEN(ops) - 1; in fold_compare() 409 for (i = 0; i < asdl_seq_LEN(seq); i++) { \ 419 for (i = 0; i < asdl_seq_LEN(seq); i++) { \
|
D | ast.c | 47 if (!asdl_seq_LEN(gens)) { in validate_comprehension() 51 for (i = 0; i < asdl_seq_LEN(gens); i++) { in validate_comprehension() 65 for (i = 0; i < asdl_seq_LEN(keywords); i++) in validate_keywords() 75 for (i = 0; i < asdl_seq_LEN(args); i++) { in validate_args() 114 if (asdl_seq_LEN(args->defaults) > asdl_seq_LEN(args->posonlyargs) + asdl_seq_LEN(args->args)) { in validate_arguments() 118 if (asdl_seq_LEN(args->kw_defaults) != asdl_seq_LEN(args->kwonlyargs)) { in validate_arguments() 225 if (asdl_seq_LEN(exp->v.BoolOp.values) < 2) { in validate_expr() 243 if (asdl_seq_LEN(exp->v.Dict.keys) != asdl_seq_LEN(exp->v.Dict.values)) { in validate_expr() 273 if (!asdl_seq_LEN(exp->v.Compare.comparators)) { in validate_expr() 277 if (asdl_seq_LEN(exp->v.Compare.comparators) != in validate_expr() [all …]
|
D | symtable.c | 304 for (i = 0; i < asdl_seq_LEN(seq); i++) in PySymtable_BuildObject() 315 for (i = 0; i < asdl_seq_LEN(seq); i++) in PySymtable_BuildObject() 1120 for (i = 0; i < asdl_seq_LEN(seq); i++) { \ 1130 for (i = (START); i < asdl_seq_LEN(seq); i++) { \ 1140 for (i = 0; i < asdl_seq_LEN(seq); i++) { \ 1322 for (i = 0; i < asdl_seq_LEN(seq); i++) { in symtable_visit_stmt() 1355 for (i = 0; i < asdl_seq_LEN(seq); i++) { in symtable_visit_stmt() 1693 for (i = 0; i < asdl_seq_LEN(args); i++) { in symtable_visit_params() 1710 for (i = 0; i < asdl_seq_LEN(args); i++) { in symtable_visit_argannotations()
|
D | Python-ast.c | 1094 Py_ssize_t i, n = asdl_seq_LEN(seq); in ast2obj_list() 4183 Py_ssize_t i, n = asdl_seq_LEN(o->v.Compare.ops); in ast2obj_expr()
|
/third_party/python/Parser/pegen/ |
D | pegen.c | 1307 asdl_seq *new_seq = _Py_asdl_seq_new(asdl_seq_LEN(seq) + 1, p->arena); in _PyPegen_seq_insert_in_front() 1313 for (Py_ssize_t i = 1, l = asdl_seq_LEN(new_seq); i < l; i++) { in _PyPegen_seq_insert_in_front() 1328 asdl_seq *new_seq = _Py_asdl_seq_new(asdl_seq_LEN(seq) + 1, p->arena); in _PyPegen_seq_append_to_end() 1333 for (Py_ssize_t i = 0, l = asdl_seq_LEN(new_seq); i + 1 < l; i++) { in _PyPegen_seq_append_to_end() 1336 asdl_seq_SET(new_seq, asdl_seq_LEN(new_seq) - 1, a); in _PyPegen_seq_append_to_end() 1344 for (Py_ssize_t i = 0, l = asdl_seq_LEN(seqs); i < l; i++) { in _get_flattened_seq_size() 1346 size += asdl_seq_LEN(inner_seq); in _get_flattened_seq_size() 1364 for (Py_ssize_t i = 0, l = asdl_seq_LEN(seqs); i < l; i++) { in _PyPegen_seq_flatten() 1366 for (Py_ssize_t j = 0, li = asdl_seq_LEN(inner_seq); j < li; j++) { in _PyPegen_seq_flatten() 1435 for (Py_ssize_t i = 0, l = asdl_seq_LEN(seq); i < l; i++) { in _PyPegen_seq_count_dots() [all …]
|
/third_party/python/Include/ |
D | asdl.h | 32 #define asdl_seq_LEN(S) ((S) == NULL ? 0 : (S)->size) macro
|