Home
last modified time | relevance | path

Searched refs:asdl_seq (Results 1 – 9 of 9) sorted by relevance

/third_party/python/Parser/
Dpegen.h103 asdl_seq *names_with_defaults; // asdl_seq* of NameDefaultsPair's
108 asdl_seq *kwonlyargs; // asdl_seq* of NameDefaultsPair's
150 void * _PyPegen_seq_last_item(asdl_seq *seq);
151 #define PyPegen_last_item(seq, type) ((type)_PyPegen_seq_last_item((asdl_seq*)seq))
153 void * _PyPegen_seq_first_item(asdl_seq *seq);
154 #define PyPegen_first_item(seq, type) ((type)_PyPegen_seq_first_item((asdl_seq*)seq))
257 asdl_seq *_PyPegen_singleton_seq(Parser *, void *);
258 asdl_seq *_PyPegen_seq_insert_in_front(Parser *, void *, asdl_seq *);
259 asdl_seq *_PyPegen_seq_append_to_end(Parser *, asdl_seq *, void *);
260 asdl_seq *_PyPegen_seq_flatten(Parser *, asdl_seq *);
[all …]
Dpegen.c1483 asdl_seq *
1487 asdl_seq *seq = (asdl_seq*)_Py_asdl_generic_seq_new(1, p->arena); in _PyPegen_singleton_seq()
1496 asdl_seq *
1497 _PyPegen_seq_insert_in_front(Parser *p, void *a, asdl_seq *seq) in _PyPegen_seq_insert_in_front()
1504 asdl_seq *new_seq = (asdl_seq*)_Py_asdl_generic_seq_new(asdl_seq_LEN(seq) + 1, p->arena); in _PyPegen_seq_insert_in_front()
1517 asdl_seq *
1518 _PyPegen_seq_append_to_end(Parser *p, asdl_seq *seq, void *a) in _PyPegen_seq_append_to_end()
1525 asdl_seq *new_seq = (asdl_seq*)_Py_asdl_generic_seq_new(asdl_seq_LEN(seq) + 1, p->arena); in _PyPegen_seq_append_to_end()
1538 _get_flattened_seq_size(asdl_seq *seqs) in _get_flattened_seq_size()
1542 asdl_seq *inner_seq = asdl_seq_GET_UNTYPED(seqs, i); in _get_flattened_seq_size()
[all …]
Dparser.c566 static asdl_seq* open_sequence_pattern_rule(Parser *p);
567 static asdl_seq* maybe_sequence_pattern_rule(Parser *p);
571 static asdl_seq* items_pattern_rule(Parser *p);
576 static asdl_seq* keyword_patterns_rule(Parser *p);
657 static asdl_seq* double_starred_kvpairs_rule(Parser *p);
665 static asdl_seq* kwargs_rule(Parser *p);
725 static asdl_seq *_loop0_1_rule(Parser *p);
726 static asdl_seq *_loop0_2_rule(Parser *p);
727 static asdl_seq *_loop0_4_rule(Parser *p);
728 static asdl_seq *_gather_3_rule(Parser *p);
[all …]
/third_party/python/Python/
DPython-ast.c968 static PyObject* ast2obj_list(struct ast_state *state, asdl_seq *seq, PyObject* (*func)(struct ast_… in ast2obj_list()
3583 value = ast2obj_list(state, (asdl_seq*)o->v.Module.body, ast2obj_stmt); in ast2obj_mod()
3588 value = ast2obj_list(state, (asdl_seq*)o->v.Module.type_ignores, in ast2obj_mod()
3599 value = ast2obj_list(state, (asdl_seq*)o->v.Interactive.body, in ast2obj_mod()
3620 value = ast2obj_list(state, (asdl_seq*)o->v.FunctionType.argtypes, in ast2obj_mod()
3664 value = ast2obj_list(state, (asdl_seq*)o->v.FunctionDef.body, in ast2obj_stmt()
3670 value = ast2obj_list(state, (asdl_seq*)o->v.FunctionDef.decorator_list, in ast2obj_stmt()
3701 value = ast2obj_list(state, (asdl_seq*)o->v.AsyncFunctionDef.body, in ast2obj_stmt()
3708 (asdl_seq*)o->v.AsyncFunctionDef.decorator_list, in ast2obj_stmt()
3734 value = ast2obj_list(state, (asdl_seq*)o->v.ClassDef.bases, in ast2obj_stmt()
[all …]
Dast_opt.c472 CALL(astfold_body, asdl_seq, node_->v.Module.body); in astfold_mod()
663 CALL(astfold_body, asdl_seq, node_->v.FunctionDef.body); in astfold_stmt()
671 CALL(astfold_body, asdl_seq, node_->v.AsyncFunctionDef.body); in astfold_stmt()
680 CALL(astfold_body, asdl_seq, node_->v.ClassDef.body); in astfold_stmt()
Dast.c20 static int _validate_nonempty_seq(asdl_seq *, const char *, const char *);
652 _validate_nonempty_seq(asdl_seq *seq, const char *what, const char *owner) in _validate_nonempty_seq()
659 #define validate_nonempty_seq(seq, what, owner) _validate_nonempty_seq((asdl_seq*)seq, what, owner)
/third_party/python/Include/internal/
Dpycore_asdl.h30 } asdl_seq; typedef
/third_party/python/Grammar/
Dpython.gram42 CHECK(asdl_seq*, _PyPegen_seq_append_to_end(p, a, b)),
49 CHECK(asdl_seq*, _PyPegen_singleton_seq(p, a)),
324 open_sequence_pattern[asdl_seq*]:
327 maybe_sequence_pattern[asdl_seq*]:
355 items_pattern[asdl_seq*]:
386 keyword_patterns[asdl_seq*]:
728 double_starred_kvpairs[asdl_seq*]: a=','.double_starred_kvpair+ [','] { a }
757 kwargs[asdl_seq*]:
/third_party/python/Misc/
DHISTORY7488 - asdl_seq and asdl_int_seq are now Py_ssize_t sized.