Home
last modified time | relevance | path

Searched refs:asdl_seq_LEN (Results 1 – 11 of 11) sorted by relevance

/third_party/python/Python/
Dast.c48 if (!asdl_seq_LEN(gens)) { in validate_comprehension()
52 for (i = 0; i < asdl_seq_LEN(gens); i++) { in validate_comprehension()
66 for (i = 0; i < asdl_seq_LEN(keywords); i++) in validate_keywords()
76 for (i = 0; i < asdl_seq_LEN(args); i++) { in validate_args()
115 if (asdl_seq_LEN(args->defaults) > asdl_seq_LEN(args->posonlyargs) + asdl_seq_LEN(args->args)) { in validate_arguments()
119 if (asdl_seq_LEN(args->kw_defaults) != asdl_seq_LEN(args->kwonlyargs)) { in validate_arguments()
237 if (asdl_seq_LEN(exp->v.BoolOp.values) < 2) { in validate_expr()
260 if (asdl_seq_LEN(exp->v.Dict.keys) != asdl_seq_LEN(exp->v.Dict.values)) { in validate_expr()
297 if (!asdl_seq_LEN(exp->v.Compare.comparators)) { in validate_expr()
301 if (asdl_seq_LEN(exp->v.Compare.comparators) != in validate_expr()
[all …]
Dast_unparse.c132 value_count = asdl_seq_LEN(values); in append_ast_boolop()
224 posonlyarg_count = asdl_seq_LEN(args->posonlyargs); in append_ast_args()
225 arg_count = asdl_seq_LEN(args->args); in append_ast_args()
226 default_count = asdl_seq_LEN(args->defaults); in append_ast_args()
246 if (args->vararg || asdl_seq_LEN(args->kwonlyargs)) { in append_ast_args()
255 arg_count = asdl_seq_LEN(args->kwonlyargs); in append_ast_args()
256 default_count = asdl_seq_LEN(args->kw_defaults); in append_ast_args()
285 Py_ssize_t n_positional = (asdl_seq_LEN(e->v.Lambda.args->args) + in append_ast_lambda()
286 asdl_seq_LEN(e->v.Lambda.args->posonlyargs)); in append_ast_lambda()
315 value_count = asdl_seq_LEN(e->v.Dict.values); in append_ast_dict()
[all …]
Dfuture.c16 for (i = 0; i < asdl_seq_LEN(names); i++) { in future_check_features()
64 if (asdl_seq_LEN(mod->v.Module.body) == 0) in future_parse()
79 for (; i < asdl_seq_LEN(mod->v.Module.body); i++) { in future_parse()
Dcompile.c1645 for (_i = 0; _i < asdl_seq_LEN(seq); _i++) { \
1655 for (_i = 0; _i < asdl_seq_LEN(seq); _i++) { \
1677 for (i = 0; i < asdl_seq_LEN(stmts); i++) { in find_ann()
1705 for (j = 0; j < asdl_seq_LEN(st->v.Try.handlers); j++) { in find_ann()
1909 if (c->u->u_scope_type == COMPILER_SCOPE_MODULE && asdl_seq_LEN(stmts)) { in compiler_body()
1917 if (!asdl_seq_LEN(stmts)) in compiler_body()
1931 for (; i < asdl_seq_LEN(stmts); i++) in compiler_body()
2077 for (i = 0; i < asdl_seq_LEN(decos); i++) { in compiler_decorators()
2094 for (i = 0; i < asdl_seq_LEN(kwonlyargs); i++) { in compiler_visit_kwonlydefaults()
2177 for (i = 0; i < asdl_seq_LEN(args); i++) { in compiler_visit_argannotations()
[all …]
Dast_opt.c49 asdl_seq_LEN(arg->v.Compare.ops) == 1) { in fold_unaryop()
291 for (int i = 0; i < asdl_seq_LEN(elts); i++) { in make_const_tuple()
298 PyObject *newval = PyTuple_New(asdl_seq_LEN(elts)); in make_const_tuple()
303 for (int i = 0; i < asdl_seq_LEN(elts); i++) { in make_const_tuple()
356 Py_ssize_t n = asdl_seq_LEN(elts); in fold_iter()
394 i = asdl_seq_LEN(ops) - 1; in fold_compare()
427 for (i = 0; i < asdl_seq_LEN(seq); i++) { \
437 for (i = 0; i < asdl_seq_LEN(seq); i++) { \
Dsymtable.c325 for (i = 0; i < asdl_seq_LEN(seq); i++) in _PySymtable_Build()
336 for (i = 0; i < asdl_seq_LEN(seq); i++) in _PySymtable_Build()
1148 for (i = 0; i < asdl_seq_LEN(seq); i++) { \
1158 for (i = (START); i < asdl_seq_LEN(seq); i++) { \
1168 for (i = 0; i < asdl_seq_LEN(seq); i++) { \
1361 for (i = 0; i < asdl_seq_LEN(seq); i++) { in symtable_visit_stmt()
1397 for (i = 0; i < asdl_seq_LEN(seq); i++) { in symtable_visit_stmt()
1814 for (i = 0; i < asdl_seq_LEN(args); i++) { in symtable_visit_params()
1849 for (i = 0; i < asdl_seq_LEN(args); i++) { in symtable_visit_argannotations()
DPython-ast.c970 Py_ssize_t i, n = asdl_seq_LEN(seq); in ast2obj_list()
4416 Py_ssize_t i, n = asdl_seq_LEN(o->v.Compare.ops); in ast2obj_expr()
/third_party/python/Parser/
Dpegen.c1527 asdl_seq *new_seq = (asdl_seq*)_Py_asdl_generic_seq_new(asdl_seq_LEN(seq) + 1, p->arena); in _PyPegen_seq_insert_in_front()
1533 for (Py_ssize_t i = 1, l = asdl_seq_LEN(new_seq); i < l; i++) { in _PyPegen_seq_insert_in_front()
1548 asdl_seq *new_seq = (asdl_seq*)_Py_asdl_generic_seq_new(asdl_seq_LEN(seq) + 1, p->arena); in _PyPegen_seq_append_to_end()
1553 for (Py_ssize_t i = 0, l = asdl_seq_LEN(new_seq); i + 1 < l; i++) { in _PyPegen_seq_append_to_end()
1556 asdl_seq_SET_UNTYPED(new_seq, asdl_seq_LEN(new_seq) - 1, a); in _PyPegen_seq_append_to_end()
1564 for (Py_ssize_t i = 0, l = asdl_seq_LEN(seqs); i < l; i++) { in _get_flattened_seq_size()
1566 size += asdl_seq_LEN(inner_seq); in _get_flattened_seq_size()
1584 for (Py_ssize_t i = 0, l = asdl_seq_LEN(seqs); i < l; i++) { in _PyPegen_seq_flatten()
1586 for (Py_ssize_t j = 0, li = asdl_seq_LEN(inner_seq); j < li; j++) { in _PyPegen_seq_flatten()
1598 Py_ssize_t len = asdl_seq_LEN(seq); in _PyPegen_seq_last_item()
[all …]
Dparser.c5886 …_res = asdl_seq_LEN ( patterns ) == 1 ? asdl_seq_GET ( patterns , 0 ) : _PyAST_MatchOr ( patterns … in or_pattern_rule()
/third_party/python/Include/internal/
Dpycore_asdl.h83 #define asdl_seq_LEN(S) ((S) == NULL ? 0 : (S)->size) macro
/third_party/python/Grammar/
Dpython.gram250 asdl_seq_LEN(patterns) == 1 ? asdl_seq_GET(patterns, 0) : _PyAST_MatchOr(patterns, EXTRA) }