/external/python/cpython3/Python/ |
D | ast_unparse.c | 113 APPEND_EXPR((expr_ty)asdl_seq_GET(values, i), pr + 1); in append_ast_boolop() 205 APPEND(arg, (arg_ty)asdl_seq_GET(args->args, i)); in append_ast_args() 210 APPEND_EXPR((expr_ty)asdl_seq_GET(args->defaults, di), PR_TEST); in append_ast_args() 228 APPEND(arg, (arg_ty)asdl_seq_GET(args->kwonlyargs, i)); in append_ast_args() 232 expr_ty default_ = (expr_ty)asdl_seq_GET(args->kw_defaults, di); in append_ast_args() 286 key_node = (expr_ty)asdl_seq_GET(e->v.Dict.keys, i); in append_ast_dict() 290 APPEND_EXPR((expr_ty)asdl_seq_GET(e->v.Dict.values, i), PR_TEST); in append_ast_dict() 294 APPEND_EXPR((expr_ty)asdl_seq_GET(e->v.Dict.values, i), PR_EXPR); in append_ast_dict() 310 APPEND_EXPR((expr_ty)asdl_seq_GET(e->v.Set.elts, i), PR_TEST); in append_ast_set() 325 APPEND_EXPR((expr_ty)asdl_seq_GET(e->v.List.elts, i), PR_TEST); in append_ast_list() [all …]
|
D | compile.c | 1349 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, _i); \ 1359 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, _i); \ 1425 st = (stmt_ty)asdl_seq_GET(stmts, i); in find_ann() 1453 excepthandler_ty handler = (excepthandler_ty)asdl_seq_GET( in find_ann() 1488 st = (stmt_ty)asdl_seq_GET(stmts, 0); in compiler_body() 1497 st = (stmt_ty)asdl_seq_GET(stmts, 0); in compiler_body() 1507 VISIT(c, stmt, (stmt_ty)asdl_seq_GET(stmts, i)); in compiler_body() 1661 VISIT(c, expr, (expr_ty)asdl_seq_GET(decos, i)); in compiler_decorators() 1678 arg_ty arg = asdl_seq_GET(kwonlyargs, i); in compiler_visit_kwonlydefaults() 1679 expr_ty default_ = asdl_seq_GET(kw_defaults, i); in compiler_visit_kwonlydefaults() [all …]
|
D | future.c | 23 alias_ty name = (alias_ty)asdl_seq_GET(names, i); in future_check_features() 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 | ast_opt.c | 91 int op = asdl_seq_GET(arg->v.Compare.ops, 0); in fold_unaryop() 316 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple() 328 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple() 408 int op = asdl_seq_GET(ops, i); in fold_compare() 410 if (!fold_iter((expr_ty)asdl_seq_GET(args, i), arena, optimize)) { in fold_compare() 439 TYPE elt = (TYPE)asdl_seq_GET(seq, i); \ 449 TYPE elt = (TYPE)asdl_seq_GET(seq, i); \ 473 int docstring = isdocstring((stmt_ty)asdl_seq_GET(stmts, 0)); in astfold_body() 478 stmt_ty st = (stmt_ty)asdl_seq_GET(stmts, 0); in astfold_body()
|
D | symtable.c | 294 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_BuildObject() 305 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_BuildObject() 1061 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 1071 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 1081 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 1262 identifier name = (identifier)asdl_seq_GET(seq, i); in symtable_visit_stmt() 1295 identifier name = (identifier)asdl_seq_GET(seq, i); in symtable_visit_stmt() 1533 arg_ty arg = (arg_ty)asdl_seq_GET(args, i); in symtable_visit_params() 1550 arg_ty arg = (arg_ty)asdl_seq_GET(args, i); in symtable_visit_argannotations() 1712 asdl_seq_GET(generators, 0)); in symtable_handle_comprehension()
|
D | ast.c | 31 comprehension_ty comp = asdl_seq_GET(gens, i); in validate_comprehension() 53 if (!validate_slice(asdl_seq_GET(slice->v.ExtSlice.dims, i))) in validate_slice() 70 if (!validate_expr(((keyword_ty)asdl_seq_GET(keywords, i))->value, Load)) in validate_keywords() 80 arg_ty arg = asdl_seq_GET(args, i); in validate_args() 434 withitem_ty item = asdl_seq_GET(stmt->v.With.items, i); in validate_stmt() 444 withitem_ty item = asdl_seq_GET(stmt->v.AsyncWith.items, i); in validate_stmt() 474 excepthandler_ty handler = asdl_seq_GET(stmt->v.Try.handlers, i); in validate_stmt() 522 stmt_ty stmt = asdl_seq_GET(seq, i); in validate_stmts() 541 expr_ty expr = asdl_seq_GET(exprs, i); in validate_exprs() 834 if (!asdl_seq_GET(stmts, 0)) in PyAST_FromNodeObject() [all …]
|
D | Python-ast.c | 709 value = func(asdl_seq_GET(seq, i)); in ast2obj_list() 3261 … PyList_SET_ITEM(value, i, ast2obj_cmpop((cmpop_ty)asdl_seq_GET(o->v.Compare.ops, i))); in ast2obj_expr()
|
/external/python/cpython2/Python/ |
D | compile.c | 1132 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, _i); \ 1142 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, _i); \ 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() 1322 VISIT(c, expr, (expr_ty)asdl_seq_GET(decos, i)); in compiler_decorators() 1334 expr_ty arg = (expr_ty)asdl_seq_GET(args->args, i); in compiler_arguments() 1371 st = (stmt_ty)asdl_seq_GET(s->v.FunctionDef.body, 0); in compiler_function() 1387 st = (stmt_ty)asdl_seq_GET(s->v.FunctionDef.body, i); in compiler_function() 1552 expr_ty e = (expr_ty)asdl_seq_GET(s->v.Print.values, i); in compiler_print() 1846 excepthandler_ty handler = (excepthandler_ty)asdl_seq_GET( in compiler_try_except() [all …]
|
D | future.c | 24 alias_ty name = (alias_ty)asdl_seq_GET(names, i); in future_check_features() 75 stmt_ty s = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i); in future_parse()
|
D | symtable.c | 245 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_Build() 256 (stmt_ty)asdl_seq_GET(seq, i))) in PySymtable_Build() 966 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 976 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 988 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 998 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 1147 identifier name = (identifier)asdl_seq_GET(seq, i); in symtable_visit_stmt() 1322 expr_ty arg = (expr_ty)asdl_seq_GET(args, i); in symtable_visit_params() 1358 expr_ty arg = (expr_ty)asdl_seq_GET(args, i); in symtable_visit_params_nested() 1509 asdl_seq_GET(generators, 0)); in symtable_handle_comprehension() [all …]
|
D | ast.c | 287 if (!asdl_seq_GET(stmts, 0)) in PyAST_FromNode() 480 if (!set_context(c, (expr_ty)asdl_seq_GET(s, i), ctx, n)) in set_context() 741 if (!asdl_seq_GET(args, k-1)) in ast_for_arguments() 1110 first = (expr_ty)asdl_seq_GET(t, 0); in ast_for_listcomp() 1251 first = (expr_ty)asdl_seq_GET(t, 0); in ast_for_comprehension() 1713 slc = (slice_ty)asdl_seq_GET(slices, j); in ast_for_trailer() 2080 ((keyword_ty)asdl_seq_GET(keywords, k))->arg); in ast_for_call() 2689 globals = asdl_seq_GET(expr1->v.Tuple.elts, 1); in ast_for_exec_stmt() 2691 locals = asdl_seq_GET(expr1->v.Tuple.elts, 2); in ast_for_exec_stmt() 2693 expr1 = asdl_seq_GET(expr1->v.Tuple.elts, 0); in ast_for_exec_stmt() [all …]
|
D | Python-ast.c | 555 value = func(asdl_seq_GET(seq, i)); in ast2obj_list() 2766 … PyList_SET_ITEM(value, i, ast2obj_cmpop((cmpop_ty)asdl_seq_GET(o->v.Compare.ops, i))); in ast2obj_expr()
|
/external/python/cpython2/Include/ |
D | asdl.h | 33 #define asdl_seq_GET(S, I) (S)->elements[(I)] macro
|
/external/python/cpython3/Include/ |
D | asdl.h | 32 #define asdl_seq_GET(S, I) (S)->elements[(I)] macro
|