/third_party/python/Python/ |
D | ast_unparse.c | 136 APPEND_EXPR((expr_ty)asdl_seq_GET(values, i), pr + 1); in append_ast_boolop() 230 APPEND(arg, (arg_ty)asdl_seq_GET(args->posonlyargs, i)); in append_ast_args() 232 APPEND(arg, (arg_ty)asdl_seq_GET(args->args, i-posonlyarg_count)); in append_ast_args() 238 APPEND_EXPR((expr_ty)asdl_seq_GET(args->defaults, di), PR_TEST); in append_ast_args() 259 APPEND(arg, (arg_ty)asdl_seq_GET(args->kwonlyargs, i)); in append_ast_args() 263 expr_ty default_ = (expr_ty)asdl_seq_GET(args->kw_defaults, di); in append_ast_args() 319 key_node = (expr_ty)asdl_seq_GET(e->v.Dict.keys, i); in append_ast_dict() 323 APPEND_EXPR((expr_ty)asdl_seq_GET(e->v.Dict.values, i), PR_TEST); in append_ast_dict() 327 APPEND_EXPR((expr_ty)asdl_seq_GET(e->v.Dict.values, i), PR_EXPR); in append_ast_dict() 343 APPEND_EXPR((expr_ty)asdl_seq_GET(e->v.Set.elts, i), PR_TEST); in append_ast_set() [all …]
|
D | compile.c | 1646 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, _i); \ 1656 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, _i); \ 1678 st = (stmt_ty)asdl_seq_GET(stmts, i); in find_ann() 1706 excepthandler_ty handler = (excepthandler_ty)asdl_seq_GET( in find_ann() 1910 st = (stmt_ty)asdl_seq_GET(stmts, 0); in compiler_body() 1924 st = (stmt_ty)asdl_seq_GET(stmts, 0); in compiler_body() 1932 VISIT(c, stmt, (stmt_ty)asdl_seq_GET(stmts, i)); in compiler_body() 2078 VISIT(c, expr, (expr_ty)asdl_seq_GET(decos, i)); in compiler_decorators() 2095 arg_ty arg = asdl_seq_GET(kwonlyargs, i); in compiler_visit_kwonlydefaults() 2096 expr_ty default_ = asdl_seq_GET(kw_defaults, i); in compiler_visit_kwonlydefaults() [all …]
|
D | ast.c | 53 comprehension_ty comp = asdl_seq_GET(gens, i); in validate_comprehension() 67 if (!validate_expr(state, (asdl_seq_GET(keywords, i))->value, Load)) in validate_keywords() 77 arg_ty arg = asdl_seq_GET(args, i); in validate_args() 543 expr_ty key = asdl_seq_GET(keys, i); in validate_pattern() 592 PyObject *identifier = asdl_seq_GET(p->v.MatchClass.kwd_attrs, i); in validate_pattern() 750 withitem_ty item = asdl_seq_GET(stmt->v.With.items, i); in validate_stmt() 761 withitem_ty item = asdl_seq_GET(stmt->v.AsyncWith.items, i); in validate_stmt() 774 match_case_ty m = asdl_seq_GET(stmt->v.Match.cases, i); in validate_stmt() 809 excepthandler_ty handler = asdl_seq_GET(stmt->v.Try.handlers, i); in validate_stmt() 870 stmt_ty stmt = asdl_seq_GET(seq, i); in validate_stmts() [all …]
|
D | future.c | 17 alias_ty name = (alias_ty)asdl_seq_GET(names, i); in future_check_features() 80 stmt_ty s = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i); in future_parse()
|
D | ast_opt.c | 55 cmpop_ty op = asdl_seq_GET(arg->v.Compare.ops, 0); in fold_unaryop() 292 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple() 304 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple() 358 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in fold_iter() 395 int op = asdl_seq_GET(ops, i); in fold_compare() 397 if (!fold_iter((expr_ty)asdl_seq_GET(args, i), arena, state)) { in fold_compare() 428 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 438 TYPE elt = (TYPE)asdl_seq_GET(seq, i); \ 450 stmt_ty st = (stmt_ty)asdl_seq_GET(stmts, 0); in astfold_body()
|
D | symtable.c | 327 (stmt_ty)asdl_seq_GET(seq, i))) in _PySymtable_Build() 338 (stmt_ty)asdl_seq_GET(seq, i))) in _PySymtable_Build() 1149 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 1159 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 1169 TYPE ## _ty elt = (TYPE ## _ty)asdl_seq_GET(seq, i); \ 1362 identifier name = (identifier)asdl_seq_GET(seq, i); in symtable_visit_stmt() 1398 identifier name = (identifier)asdl_seq_GET(seq, i); in symtable_visit_stmt() 1815 arg_ty arg = (arg_ty)asdl_seq_GET(args, i); in symtable_visit_params() 1850 arg_ty arg = (arg_ty)asdl_seq_GET(args, i); in symtable_visit_argannotations() 2022 asdl_seq_GET(generators, 0)); in symtable_handle_comprehension()
|
D | Python-ast.c | 4420 … PyList_SET_ITEM(value, i, ast2obj_cmpop(state, (cmpop_ty)asdl_seq_GET(o->v.Compare.ops, i))); in ast2obj_expr()
|
/third_party/python/Include/internal/ |
D | pycore_asdl.h | 82 #define asdl_seq_GET(S, I) (S)->typed_elements[(I)] macro
|
/third_party/python/Parser/ |
D | pegen.c | 1690 expr_ty e = asdl_seq_GET(seq, i); in _PyPegen_map_names_to_ids() 1758 expr_ty e = asdl_seq_GET(seq, i); in _set_seq_context() 2474 expr_ty other = asdl_seq_GET((CONTAINER)->v.TYPE.elts, i);\ in _PyPegen_get_invalid_target() 2505 cmpop_ty cmpop = (cmpop_ty) asdl_seq_GET(e->v.Compare.ops, 0); in _PyPegen_get_invalid_target() 2524 keyword_ty keyword = asdl_seq_GET(e->v.Call.keywords, i); in _PyPegen_arguments_parsing_error() 2567 (expr_ty) asdl_seq_GET(args->v.Call.args, len - 1), in _PyPegen_nonparen_genexp_in_call() 2597 asdl_seq_SET(args, i, asdl_seq_GET(a, i)); in _PyPegen_collect_call_seqs() 2600 asdl_seq_SET(args, i, asdl_seq_GET(starreds, i - args_len)); in _PyPegen_collect_call_seqs()
|
D | parser.c | 5886 …_res = asdl_seq_LEN ( patterns ) == 1 ? asdl_seq_GET ( patterns , 0 ) : _PyAST_MatchOr ( patterns … in or_pattern_rule() 18535 …_res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , asdl_seq_GET ( b , b -> size - 1 ) -> target , "Genera… in invalid_arguments_rule()
|
/third_party/python/Grammar/ |
D | python.gram | 250 asdl_seq_LEN(patterns) == 1 ? asdl_seq_GET(patterns, 0) : _PyAST_MatchOr(patterns, EXTRA) } 838 …RAISE_SYNTAX_ERROR_KNOWN_RANGE(a, asdl_seq_GET(b, b->size-1)->target, "Generator expression must b…
|