Home
last modified time | relevance | path

Searched refs:asdl_stmt_seq (Results 1 – 10 of 10) sorted by relevance

/third_party/python/Include/internal/
Dpycore_ast.h65 } asdl_stmt_seq; typedef
67 asdl_stmt_seq *_Py_asdl_stmt_seq_new(Py_ssize_t size, PyArena *arena);
157 asdl_stmt_seq *body;
162 asdl_stmt_seq *body;
191 asdl_stmt_seq *body;
200 asdl_stmt_seq *body;
210 asdl_stmt_seq *body;
244 asdl_stmt_seq *body;
245 asdl_stmt_seq *orelse;
252 asdl_stmt_seq *body;
[all …]
/third_party/python/Grammar/
Dpython.gram55 statements[asdl_stmt_seq*]: a=statement+ { (asdl_stmt_seq*)_PyPegen_seq_flatten(p, a) }
56 statement[asdl_stmt_seq*]: a=compound_stmt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } | a[asd…
57 statement_newline[asdl_stmt_seq*]:
58 | a=compound_stmt NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) }
60 | NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, CHECK(stmt_ty, _PyAST_Pass(EXTRA))) }
62 simple_stmts[asdl_stmt_seq*]:
63 …| a=simple_stmt !';' NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } # Not needed, there …
64 | a[asdl_stmt_seq*]=';'.simple_stmt+ [';'] NEWLINE { a }
169 _PyAST_If(a, b, CHECK(asdl_stmt_seq*, _PyPegen_singleton_seq(p, c)), EXTRA) }
174 _PyAST_If(a, b, CHECK(asdl_stmt_seq*, _PyPegen_singleton_seq(p, c)), EXTRA) }
[all …]
/third_party/python/Parser/
Dpegen.h256 asdl_stmt_seq *_PyPegen_interactive_exit(Parser *);
296 mod_ty _PyPegen_make_module(Parser *, asdl_stmt_seq *);
Dparser.c510 static asdl_stmt_seq* statements_rule(Parser *p);
511 static asdl_stmt_seq* statement_rule(Parser *p);
512 static asdl_stmt_seq* statement_newline_rule(Parser *p);
513 static asdl_stmt_seq* simple_stmts_rule(Parser *p);
534 static asdl_stmt_seq* else_block_rule(Parser *p);
541 static asdl_stmt_seq* finally_block_rule(Parser *p);
598 static asdl_stmt_seq* block_rule(Parser *p);
1000 asdl_stmt_seq* a; in interactive_rule()
1425 static asdl_stmt_seq*
1436 asdl_stmt_seq* _res = NULL; in statements_rule()
[all …]
Dpegen.c1473 asdl_stmt_seq*
2437 _PyPegen_make_module(Parser *p, asdl_stmt_seq *a) { in _PyPegen_make_module()
/third_party/python/Python/
Dast.c17 static int validate_stmts(struct validator *, asdl_stmt_seq *);
669 validate_body(struct validator *state, asdl_stmt_seq *body, const char *owner) in validate_body()
866 validate_stmts(struct validator *state, asdl_stmt_seq *seq) in validate_stmts()
975 _PyAST_GetDocString(asdl_stmt_seq *body) in _PyAST_GetDocString()
DPython-ast.c1883 _PyAST_Module(asdl_stmt_seq * body, asdl_type_ignore_seq * type_ignores, in _PyAST_Module()
1897 _PyAST_Interactive(asdl_stmt_seq * body, PyArena *arena) in _PyAST_Interactive()
1944 _PyAST_FunctionDef(identifier name, arguments_ty args, asdl_stmt_seq * body, in _PyAST_FunctionDef()
1978 _PyAST_AsyncFunctionDef(identifier name, arguments_ty args, asdl_stmt_seq * in _PyAST_AsyncFunctionDef()
2013 keywords, asdl_stmt_seq * body, asdl_expr_seq * decorator_list, in _PyAST_ClassDef()
2164 _PyAST_For(expr_ty target, expr_ty iter, asdl_stmt_seq * body, asdl_stmt_seq * in _PyAST_For()
2196 _PyAST_AsyncFor(expr_ty target, expr_ty iter, asdl_stmt_seq * body, in _PyAST_AsyncFor()
2197 asdl_stmt_seq * orelse, string type_comment, int lineno, int in _PyAST_AsyncFor()
2228 _PyAST_While(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int in _PyAST_While()
2253 _PyAST_If(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int in _PyAST_If()
[all …]
Dast_opt.c445 astfold_body(asdl_stmt_seq *stmts, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_body()
Dsymtable.c285 asdl_stmt_seq *seq; in _PySymtable_Build()
Dcompile.c1672 find_ann(asdl_stmt_seq *stmts) in find_ann()
1899 compiler_body(struct compiler *c, asdl_stmt_seq *stmts) in compiler_body()
2325 asdl_stmt_seq *body; in compiler_function()