/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 | 7 typedef struct _stmt *stmt_ty; typedef 451 stmt_ty _Py_FunctionDef(identifier name, arguments_ty args, asdl_seq * body, 455 stmt_ty _Py_AsyncFunctionDef(identifier name, arguments_ty args, asdl_seq * 459 stmt_ty _Py_ClassDef(identifier name, asdl_seq * bases, asdl_seq * keywords, 463 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, PyArena *arena); 465 stmt_ty _Py_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena 468 stmt_ty _Py_Assign(asdl_seq * targets, expr_ty value, int lineno, int 471 stmt_ty _Py_AugAssign(expr_ty target, operator_ty op, expr_ty value, int 474 stmt_ty _Py_AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int 477 stmt_ty _Py_For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * [all …]
|
/external/python/cpython3/Python/ |
D | ast_opt.c | 418 static int astfold_stmt(stmt_ty node_, PyArena *ctx_, int optimize_); 456 isdocstring(stmt_ty s) in isdocstring() 473 int docstring = isdocstring((stmt_ty)asdl_seq_GET(stmts, 0)); in astfold_body() 474 CALL_SEQ(astfold_stmt, stmt_ty, stmts); in astfold_body() 478 stmt_ty st = (stmt_ty)asdl_seq_GET(stmts, 0); in astfold_body() 502 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.Interactive.body); in astfold_mod() 508 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.Suite.body); in astfold_mod() 679 astfold_stmt(stmt_ty node_, PyArena *ctx_, int optimize_) in astfold_stmt() 722 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.For.body); in astfold_stmt() 723 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.For.orelse); in astfold_stmt() [all …]
|
D | future.c | 14 future_check_features(PyFutureFeatures *ff, stmt_ty s, PyObject *filename) in future_check_features() 66 stmt_ty first; in future_parse() 83 first = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i); in future_parse() 91 stmt_ty s = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i); in future_parse()
|
D | Python-ast.c | 1171 static int obj2ast_stmt(PyObject* obj, stmt_ty* out, PyArena* arena); 1243 stmt_ty 1248 stmt_ty p; in FunctionDef() 1259 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in FunctionDef() 1273 stmt_ty 1278 stmt_ty p; in AsyncFunctionDef() 1289 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in AsyncFunctionDef() 1303 stmt_ty 1308 stmt_ty p; in ClassDef() 1314 p = (stmt_ty)PyArena_Malloc(arena, sizeof(*p)); in ClassDef() [all …]
|
D | compile.c | 178 static int compiler_visit_stmt(struct compiler *, stmt_ty); 181 static int compiler_augassign(struct compiler *, stmt_ty); 182 static int compiler_annassign(struct compiler *, stmt_ty); 196 static int compiler_with(struct compiler *, stmt_ty, int); 197 static int compiler_async_with(struct compiler *, stmt_ty, int); 198 static int compiler_async_for(struct compiler *, stmt_ty); 202 static int compiler_try_except(struct compiler *, stmt_ty); 1368 compiler_isdocstring(stmt_ty s) in compiler_isdocstring() 1422 stmt_ty st; in find_ann() 1425 st = (stmt_ty)asdl_seq_GET(stmts, i); in find_ann() [all …]
|
D | ast.c | 19 static int validate_stmt(stmt_ty); 376 validate_stmt(stmt_ty stmt) in validate_stmt() 522 stmt_ty stmt = asdl_seq_GET(seq, i); in validate_stmts() 596 static stmt_ty ast_for_stmt(struct compiling *, const node *); 601 static stmt_ty ast_for_classdef(struct compiling *, const node *, asdl_seq *); 603 static stmt_ty ast_for_with_stmt(struct compiling *, const node *, bool); 604 static stmt_ty ast_for_for_stmt(struct compiling *, const node *, bool); 773 stmt_ty s; in PyAST_FromNodeObject() 1571 static stmt_ty 1611 static stmt_ty [all …]
|
D | symtable.c | 183 static int symtable_visit_stmt(struct symtable *st, stmt_ty s); 198 static int symtable_visit_annotations(struct symtable *st, stmt_ty s, arguments_ty, expr_ty); 294 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_BuildObject() 305 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_BuildObject() 1089 symtable_record_directive(struct symtable *st, identifier name, stmt_ty s) in symtable_record_directive() 1111 symtable_visit_stmt(struct symtable *st, stmt_ty s) in symtable_visit_stmt() 1559 symtable_visit_annotations(struct symtable *st, stmt_ty s, in symtable_visit_annotations()
|
/external/python/cpython2/Python/ |
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 | 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 | 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()
|