Home
last modified time | relevance | path

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

/third_party/python/Include/internal/
Dpycore_ast.h72 } asdl_expr_seq; typedef
74 asdl_expr_seq *_Py_asdl_expr_seq_new(Py_ssize_t size, PyArena *arena);
170 asdl_expr_seq *argtypes;
192 asdl_expr_seq *decorator_list;
201 asdl_expr_seq *decorator_list;
208 asdl_expr_seq *bases;
211 asdl_expr_seq *decorator_list;
219 asdl_expr_seq *targets;
223 asdl_expr_seq *targets;
345 asdl_expr_seq *values;
[all …]
/third_party/python/Grammar/
Dpython.gram38 type_expressions[asdl_expr_seq*]:
40 (asdl_expr_seq*)_PyPegen_seq_append_to_end(
44 | a=','.expression+ ',' '*' b=expression { (asdl_expr_seq*)_PyPegen_seq_append_to_end(p, a, b) }
45 … | a=','.expression+ ',' '**' b=expression { (asdl_expr_seq*)_PyPegen_seq_append_to_end(p, a, b) }
47 (asdl_expr_seq*)_PyPegen_seq_append_to_end(
51 | '*' a=expression { (asdl_expr_seq*)_PyPegen_singleton_seq(p, a) }
52 | '**' a=expression { (asdl_expr_seq*)_PyPegen_singleton_seq(p, a) }
53 | a[asdl_expr_seq*]=','.expression+ {a}
103 …| a[asdl_expr_seq*]=(z=star_targets '=' { z })+ b=(yield_expr | star_expressions) !'=' tc=[TYPE_CO…
124 global_stmt[stmt_ty]: 'global' a[asdl_expr_seq*]=','.NAME+ {
[all …]
/third_party/python/Parser/
Dpegen.h264 asdl_identifier_seq *_PyPegen_map_names_to_ids(Parser *, asdl_expr_seq *);
267 asdl_expr_seq *_PyPegen_get_exprs(Parser *, asdl_seq *);
270 asdl_expr_seq *_PyPegen_get_keys(Parser *, asdl_seq *);
271 asdl_expr_seq *_PyPegen_get_values(Parser *, asdl_seq *);
273 asdl_expr_seq *_PyPegen_get_pattern_keys(Parser *, asdl_seq *);
282 stmt_ty _PyPegen_function_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
283 stmt_ty _PyPegen_class_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
285 asdl_expr_seq *_PyPegen_seq_extract_starred_exprs(Parser *, asdl_seq *);
287 expr_ty _PyPegen_collect_call_seqs(Parser *, asdl_expr_seq *, asdl_seq *,
Dpegen.c1680 _PyPegen_map_names_to_ids(Parser *p, asdl_expr_seq *seq) in _PyPegen_map_names_to_ids()
1727 asdl_expr_seq *
1733 asdl_expr_seq *new_seq = _Py_asdl_expr_seq_new(len, p->arena); in _PyPegen_get_exprs()
1745 static asdl_expr_seq *
1746 _set_seq_context(Parser *p, asdl_expr_seq *seq, expr_context_ty ctx) in _set_seq_context()
1753 asdl_expr_seq *new_seq = _Py_asdl_expr_seq_new(len, p->arena); in _set_seq_context()
1855 asdl_expr_seq *
1859 asdl_expr_seq *new_seq = _Py_asdl_expr_seq_new(len, p->arena); in _PyPegen_get_keys()
1871 asdl_expr_seq *
1875 asdl_expr_seq *new_seq = _Py_asdl_expr_seq_new(len, p->arena); in _PyPegen_get_values()
[all …]
Dstring_parser.c972 static asdl_expr_seq *
975 asdl_expr_seq *seq; in ExprList_Finish()
1170 asdl_expr_seq *seq; in _PyPegen_FstringParser_Finish()
Dparser.c509 static asdl_expr_seq* type_expressions_rule(Parser *p);
595 static asdl_expr_seq* decorators_rule(Parser *p);
601 static asdl_expr_seq* star_named_expressions_rule(Parser *p);
670 static asdl_expr_seq* star_targets_list_seq_rule(Parser *p);
671 static asdl_expr_seq* star_targets_tuple_seq_rule(Parser *p);
677 static asdl_expr_seq* del_targets_rule(Parser *p);
1183 static asdl_expr_seq*
1194 asdl_expr_seq* _res = NULL; in type_expressions_rule()
1226 …_res = ( asdl_expr_seq * ) _PyPegen_seq_append_to_end ( p , CHECK ( asdl_seq * , _PyPegen_seq_appe… in type_expressions_rule()
1259 _res = ( asdl_expr_seq * ) _PyPegen_seq_append_to_end ( p , a , b ); in type_expressions_rule()
[all …]
/third_party/python/Python/
Dast_opt.c289 make_const_tuple(asdl_expr_seq *elts) in make_const_tuple()
355 asdl_expr_seq *elts = arg->v.List.elts; in fold_iter()
386 asdl_expr_seq *args; in fold_compare()
451 asdl_expr_seq *values = _Py_asdl_expr_seq_new(1, ctx_); in astfold_body()
Dast.c18 static int validate_exprs(struct validator *, asdl_expr_seq *, expr_context_ty, int);
541 asdl_expr_seq *keys = p->v.MatchMapping.keys; in validate_pattern()
662 validate_assignlist(struct validator *state, asdl_expr_seq *targets, expr_context_ty ctx) in validate_assignlist()
885 validate_exprs(struct validator *state, asdl_expr_seq *exprs, expr_context_ty ctx, int null_ok) in validate_exprs()
DPython-ast.c1926 _PyAST_FunctionType(asdl_expr_seq * argtypes, expr_ty returns, PyArena *arena) in _PyAST_FunctionType()
1945 asdl_expr_seq * decorator_list, expr_ty returns, string in _PyAST_FunctionDef()
1979 body, asdl_expr_seq * decorator_list, expr_ty returns, in _PyAST_AsyncFunctionDef()
2012 _PyAST_ClassDef(identifier name, asdl_expr_seq * bases, asdl_keyword_seq * in _PyAST_ClassDef()
2013 keywords, asdl_stmt_seq * body, asdl_expr_seq * decorator_list, in _PyAST_ClassDef()
2057 _PyAST_Delete(asdl_expr_seq * targets, int lineno, int col_offset, int in _PyAST_Delete()
2074 _PyAST_Assign(asdl_expr_seq * targets, expr_ty value, string type_comment, int in _PyAST_Assign()
2544 _PyAST_BoolOp(boolop_ty op, asdl_expr_seq * values, int lineno, int col_offset, in _PyAST_BoolOp()
2719 _PyAST_Dict(asdl_expr_seq * keys, asdl_expr_seq * values, int lineno, int in _PyAST_Dict()
2737 _PyAST_Set(asdl_expr_seq * elts, int lineno, int col_offset, int end_lineno, in _PyAST_Set()
[all …]
Dast_unparse.c125 asdl_expr_seq *values; in append_ast_boolop()
461 asdl_expr_seq *comparators; in append_ast_compare()
620 build_fstring_body(asdl_expr_seq *values, bool is_format_spec) in build_fstring_body()
Dcompile.c281 static int are_all_items_const(asdl_expr_seq *, Py_ssize_t, Py_ssize_t);
288 asdl_expr_seq *args,
2070 compiler_decorators(struct compiler *c, asdl_expr_seq* decos) in compiler_decorators()
2085 asdl_expr_seq *kw_defaults) in compiler_visit_kwonlydefaults()
2324 asdl_expr_seq* decos; in compiler_function()
2428 asdl_expr_seq *decos = s->v.ClassDef.decorator_list; in compiler_class()
2653 asdl_expr_seq *s = e->v.BoolOp.values; in compiler_jump_if()
3778 asdl_expr_seq *s; in compiler_boolop()
3806 starunpack_helper(struct compiler *c, asdl_expr_seq *elts, int pushed, in starunpack_helper()
3887 unpack_helper(struct compiler *c, asdl_expr_seq *elts) in unpack_helper()
[all …]