/external/python/cpython2/Include/ |
D | Python-ast.h | 7 typedef struct _stmt *stmt_ty; typedef 384 stmt_ty _Py_FunctionDef(identifier name, arguments_ty args, asdl_seq * body, 388 stmt_ty _Py_ClassDef(identifier name, asdl_seq * bases, asdl_seq * body, 392 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, PyArena *arena); 394 stmt_ty _Py_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena 397 stmt_ty _Py_Assign(asdl_seq * targets, expr_ty value, int lineno, int 400 stmt_ty _Py_AugAssign(expr_ty target, operator_ty op, expr_ty value, int 403 stmt_ty _Py_Print(expr_ty dest, asdl_seq * values, bool nl, int lineno, int 406 stmt_ty _Py_For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * 409 stmt_ty _Py_While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, [all …]
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 16 typedef struct _stmt *stmt_ty; typedef 469 stmt_ty _Py_FunctionDef(identifier name, arguments_ty args, asdl_seq * body, 474 stmt_ty _Py_AsyncFunctionDef(identifier name, arguments_ty args, asdl_seq * 480 stmt_ty _Py_ClassDef(identifier name, asdl_seq * bases, asdl_seq * keywords, 485 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, int end_lineno, 488 stmt_ty _Py_Delete(asdl_seq * targets, int lineno, int col_offset, int 491 stmt_ty _Py_Assign(asdl_seq * targets, expr_ty value, string type_comment, int 495 stmt_ty _Py_AugAssign(expr_ty target, operator_ty op, expr_ty value, int 499 stmt_ty _Py_AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int 503 stmt_ty _Py_For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * [all …]
|
/external/python/cpython3/Python/ |
D | ast_opt.c | 390 static int astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 430 CALL_SEQ(astfold_stmt, stmt_ty, stmts); in astfold_body() 432 stmt_ty st = (stmt_ty)asdl_seq_GET(stmts, 0); in astfold_body() 456 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.Interactive.body); in astfold_mod() 618 astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_stmt() 667 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.For.body); in astfold_stmt() 668 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.For.orelse); in astfold_stmt() 675 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.AsyncFor.body); in astfold_stmt() 676 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.AsyncFor.orelse); in astfold_stmt() 680 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.While.body); in astfold_stmt() [all …]
|
D | future.c | 15 future_check_features(PyFutureFeatures *ff, stmt_ty s, PyObject *filename) in future_check_features() 87 stmt_ty s = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i); in future_parse()
|
D | Python-ast.c | 1883 static int obj2ast_stmt(astmodulestate *state, PyObject* obj, stmt_ty* out, 1974 stmt_ty 1979 stmt_ty p; in FunctionDef() 1990 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in FunctionDef() 2007 stmt_ty 2013 stmt_ty p; in AsyncFunctionDef() 2024 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in AsyncFunctionDef() 2041 stmt_ty 2046 stmt_ty p; in ClassDef() 2052 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in ClassDef() [all …]
|
D | ast.c | 21 static int validate_stmt(stmt_ty); 350 validate_stmt(stmt_ty stmt) in validate_stmt() 496 stmt_ty stmt = asdl_seq_GET(seq, i); in validate_stmts() 568 static stmt_ty ast_for_stmt(struct compiling *, const node *); 573 static stmt_ty ast_for_classdef(struct compiling *, const node *, asdl_seq *); 575 static stmt_ty ast_for_with_stmt(struct compiling *, const node *, bool); 576 static stmt_ty ast_for_for_stmt(struct compiling *, const node *, bool); 769 stmt_ty s; in PyAST_FromNodeObject() 1712 static stmt_ty 1783 static stmt_ty [all …]
|
D | compile.c | 192 static int compiler_visit_stmt(struct compiler *, stmt_ty); 195 static int compiler_augassign(struct compiler *, stmt_ty); 196 static int compiler_annassign(struct compiler *, stmt_ty); 204 static int compiler_with(struct compiler *, stmt_ty, int); 205 static int compiler_async_with(struct compiler *, stmt_ty, int); 206 static int compiler_async_for(struct compiler *, stmt_ty); 210 static int compiler_try_except(struct compiler *, stmt_ty); 1566 stmt_ty st; in find_ann() 1569 st = (stmt_ty)asdl_seq_GET(stmts, i); in find_ann() 1784 stmt_ty st; in compiler_body() [all …]
|
D | symtable.c | 194 static int symtable_visit_stmt(struct symtable *st, stmt_ty s); 306 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_BuildObject() 317 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_BuildObject() 1171 symtable_visit_stmt(struct symtable *st, stmt_ty s) in symtable_visit_stmt()
|
/external/python/cpython2/Python/ |
D | future.c | 15 future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename) in future_check_features() 75 stmt_ty s = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i); in future_parse()
|
D | Python-ast.c | 970 static int obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena); 1040 stmt_ty 1044 stmt_ty p; in FunctionDef() 1055 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in FunctionDef() 1068 stmt_ty 1072 stmt_ty p; in ClassDef() 1078 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in ClassDef() 1091 stmt_ty 1094 stmt_ty p; in Return() 1095 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in Return() [all …]
|
D | ast.c | 28 static stmt_ty ast_for_stmt(struct compiling *, const node *); 33 static stmt_ty ast_for_classdef(struct compiling *, const node *, asdl_seq *); 221 stmt_ty s; in PyAST_FromNode() 892 static stmt_ty 919 static stmt_ty 923 stmt_ty thing = NULL; in ast_for_decorated() 2173 static stmt_ty 2271 static stmt_ty 2328 static stmt_ty 2342 static stmt_ty [all …]
|
D | compile.c | 162 static int compiler_visit_stmt(struct compiler *, stmt_ty); 165 static int compiler_augassign(struct compiler *, stmt_ty); 179 static int compiler_with(struct compiler *, stmt_ty); 1151 compiler_isdocstring(stmt_ty s) in compiler_isdocstring() 1164 stmt_ty st; in compiler_body() 1168 st = (stmt_ty)asdl_seq_GET(stmts, 0); in compiler_body() 1177 VISIT(c, stmt, (stmt_ty)asdl_seq_GET(stmts, i)); in compiler_body() 1352 compiler_function(struct compiler *c, stmt_ty s) in compiler_function() 1358 stmt_ty st; in compiler_function() 1371 st = (stmt_ty)asdl_seq_GET(s->v.FunctionDef.body, 0); in compiler_function() [all …]
|
D | symtable.c | 170 static int symtable_visit_stmt(struct symtable *st, stmt_ty s); 245 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_Build() 256 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_Build() 1007 symtable_visit_stmt(struct symtable *st, stmt_ty s) in symtable_visit_stmt()
|
/external/python/cpython3/Grammar/ |
D | python.gram | 60 small_stmt[stmt_ty] (memo): 74 compound_stmt[stmt_ty]: 84 assignment[stmt_ty]: 115 global_stmt[stmt_ty]: 'global' a=','.NAME+ { 117 nonlocal_stmt[stmt_ty]: 'nonlocal' a=','.NAME+ { 120 yield_stmt[stmt_ty]: y=yield_expr { _Py_Expr(y, EXTRA) } 122 assert_stmt[stmt_ty]: 'assert' a=expression b=[',' z=expression { z }] { _Py_Assert(a, b, EXTRA) } 124 del_stmt[stmt_ty]: 128 import_stmt[stmt_ty]: import_name | import_from 129 import_name[stmt_ty]: 'import' a=dotted_as_names { _Py_Import(a, EXTRA) } [all …]
|
/external/python/cpython3/Parser/pegen/ |
D | pegen.h | 256 stmt_ty _PyPegen_function_def_decorators(Parser *, asdl_seq *, stmt_ty); 257 stmt_ty _PyPegen_class_def_decorators(Parser *, asdl_seq *, stmt_ty);
|
D | parse.c | 404 static stmt_ty small_stmt_rule(Parser *p); 405 static stmt_ty compound_stmt_rule(Parser *p); 406 static stmt_ty assignment_rule(Parser *p); 408 static stmt_ty global_stmt_rule(Parser *p); 409 static stmt_ty nonlocal_stmt_rule(Parser *p); 410 static stmt_ty yield_stmt_rule(Parser *p); 411 static stmt_ty assert_stmt_rule(Parser *p); 412 static stmt_ty del_stmt_rule(Parser *p); 413 static stmt_ty import_stmt_rule(Parser *p); 414 static stmt_ty import_name_rule(Parser *p); [all …]
|
D | pegen.c | 1914 stmt_ty 1915 _PyPegen_function_def_decorators(Parser *p, asdl_seq *decorators, stmt_ty function_def) in _PyPegen_function_def_decorators() 1936 stmt_ty 1937 _PyPegen_class_def_decorators(Parser *p, asdl_seq *decorators, stmt_ty class_def) in _PyPegen_class_def_decorators()
|