• Home
  • Raw
  • Download

Lines Matching refs:c_arena

22     PyArena *c_arena; /* arena for allocating memeory */  member
58 #define NEW_IDENTIFIER(n) new_identifier(STR(n), c->c_arena)
238 c.c_arena = arena; in PyAST_FromNode()
590 seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in seq_for_testlist()
612 asdl_seq *args = asdl_seq_new(len, c->c_arena); in compiler_complex_args()
635 c->c_arena); in compiler_complex_args()
653 result = Tuple(args, Store, LINENO(n), n->n_col_offset, c->c_arena); in compiler_complex_args()
676 return arguments(NULL, NULL, NULL, NULL, c->c_arena); in ast_for_arguments()
689 args = (n_args ? asdl_seq_new(n_args, c->c_arena) : NULL); in ast_for_arguments()
692 defaults = (n_defaults ? asdl_seq_new(n_defaults, c->c_arena) : NULL); in ast_for_arguments()
762 c->c_arena); in ast_for_arguments()
800 return arguments(args, vararg, kwarg, defaults, c->c_arena); in ast_for_arguments()
819 e = Name(id, Load, lineno, col_offset, c->c_arena); in ast_for_dotted_name()
827 e = Attribute(e, id, Load, lineno, col_offset, c->c_arena); in ast_for_dotted_name()
856 n->n_col_offset, c->c_arena); in ast_for_decorator()
879 decorator_seq = asdl_seq_new(NCH(n), c->c_arena); in ast_for_decorators()
916 n->n_col_offset, c->c_arena); in ast_for_funcdef()
957 args = arguments(NULL, NULL, NULL, NULL, c->c_arena); in ast_for_lambdef()
973 return Lambda(args, expression, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_lambdef()
993 c->c_arena); in ast_for_ifexpr()
1086 listcomps = asdl_seq_new(n_fors, c->c_arena); in ast_for_listcomp()
1112 lc = comprehension(first, expression, NULL, c->c_arena); in ast_for_listcomp()
1115 c->c_arena), in ast_for_listcomp()
1116 expression, NULL, c->c_arena); in ast_for_listcomp()
1130 ifs = asdl_seq_new(n_ifs, c->c_arena); in ast_for_listcomp()
1155 return ListComp(elt, listcomps, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_listcomp()
1229 comps = asdl_seq_new(n_fors, c->c_arena); in ast_for_comprehension()
1253 comp = comprehension(first, expression, NULL, c->c_arena); in ast_for_comprehension()
1256 c->c_arena), in ast_for_comprehension()
1257 expression, NULL, c->c_arena); in ast_for_comprehension()
1270 ifs = asdl_seq_new(n_ifs, c->c_arena); in ast_for_comprehension()
1313 return GeneratorExp(elt, comps, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_itercomp()
1315 return SetComp(elt, comps, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_itercomp()
1342 return DictComp(key, value, comps, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_dictcomp()
1374 return Name(name, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1401 PyArena_AddPyObject(c->c_arena, str); in ast_for_atom()
1402 return Str(str, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1409 PyArena_AddPyObject(c->c_arena, pynum); in ast_for_atom()
1410 return Num(pynum, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1416 return Tuple(NULL, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1426 return List(NULL, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1434 return List(elts, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1449 return Dict(NULL, NULL, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1454 elts = asdl_seq_new(size, c->c_arena); in ast_for_atom()
1464 return Set(elts, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1473 keys = asdl_seq_new(size, c->c_arena); in ast_for_atom()
1477 values = asdl_seq_new(size, c->c_arena); in ast_for_atom()
1496 return Dict(keys, values, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1508 return Repr(expression, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1530 return Ellipsis(c->c_arena); in ast_for_slice()
1539 return Index(step, c->c_arena); in ast_for_slice()
1578 identifier none = new_identifier("None", c->c_arena); in ast_for_slice()
1582 step = Name(none, Load, LINENO(ch), ch->n_col_offset, c->c_arena); in ast_for_slice()
1595 return Slice(lower, upper, step, c->c_arena); in ast_for_slice()
1623 c->c_arena); in ast_for_binop()
1642 c->c_arena); in ast_for_binop()
1661 n->n_col_offset, c->c_arena); in ast_for_trailer()
1670 LINENO(n), n->n_col_offset, c->c_arena); in ast_for_trailer()
1681 c->c_arena); in ast_for_trailer()
1693 slices = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_trailer()
1705 return Subscript(left_expr, ExtSlice(slices, c->c_arena), in ast_for_trailer()
1706 Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_trailer()
1709 elts = asdl_seq_new(asdl_seq_LEN(slices), c->c_arena); in ast_for_trailer()
1717 e = Tuple(elts, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_trailer()
1720 return Subscript(left_expr, Index(e, c->c_arena), in ast_for_trailer()
1721 Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_trailer()
1758 PyArena_AddPyObject(c->c_arena, pynum); in ast_for_factor()
1759 return Num(pynum, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_factor()
1769 c->c_arena); in ast_for_factor()
1772 c->c_arena); in ast_for_factor()
1775 n->n_col_offset, c->c_arena); in ast_for_factor()
1810 tmp = BinOp(e, Pow, f, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_power()
1868 seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_expr()
1879 c->c_arena); in ast_for_expr()
1881 return BoolOp(Or, seq, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_expr()
1893 c->c_arena); in ast_for_expr()
1904 ops = asdl_int_seq_new(NCH(n) / 2, c->c_arena); in ast_for_expr()
1907 cmps = asdl_seq_new(NCH(n) / 2, c->c_arena); in ast_for_expr()
1933 n->n_col_offset, c->c_arena); in ast_for_expr()
1959 return Yield(exp, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_expr()
2018 args = asdl_seq_new(nargs + ngens, c->c_arena); in ast_for_call()
2021 keywords = asdl_seq_new(nkeywords, c->c_arena); in ast_for_call()
2089 kw = keyword(key, e, c->c_arena); in ast_for_call()
2110 func->col_offset, c->c_arena); in ast_for_call()
2136 return Tuple(tmp, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_testlist()
2160 asdl_seq *bases = asdl_seq_new(1, c->c_arena); in ast_for_class_bases()
2190 return Expr(e, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_expr_stmt()
2229 c->c_arena); in ast_for_expr_stmt()
2239 targets = asdl_seq_new(NCH(n) / 2, c->c_arena); in ast_for_expr_stmt()
2267 c->c_arena); in ast_for_expr_stmt()
2291 seq = asdl_seq_new(values_count, c->c_arena); in ast_for_print_stmt()
2302 return Print(dest, seq, nl, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_print_stmt()
2314 seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_exprlist()
2339 return Delete(expr_list, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_del_stmt()
2361 return Break(LINENO(n), n->n_col_offset, c->c_arena); in ast_for_flow_stmt()
2363 return Continue(LINENO(n), n->n_col_offset, c->c_arena); in ast_for_flow_stmt()
2368 return Expr(exp, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_flow_stmt()
2372 return Return(NULL, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_flow_stmt()
2378 c->c_arena); in ast_for_flow_stmt()
2383 c->c_arena); in ast_for_flow_stmt()
2389 n->n_col_offset, c->c_arena); in ast_for_flow_stmt()
2402 c->c_arena); in ast_for_flow_stmt()
2418 c->c_arena); in ast_for_flow_stmt()
2460 return alias(name, str, c->c_arena); in alias_for_import_name()
2489 return alias(name, NULL, c->c_arena); in alias_for_import_name()
2517 PyArena_AddPyObject(c->c_arena, str); in alias_for_import_name()
2518 return alias(str, NULL, c->c_arena); in alias_for_import_name()
2523 PyArena_AddPyObject(c->c_arena, str); in alias_for_import_name()
2524 return alias(str, NULL, c->c_arena); in alias_for_import_name()
2556 aliases = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_import_stmt()
2565 return Import(aliases, lineno, col_offset, c->c_arena); in ast_for_import_stmt()
2614 aliases = asdl_seq_new((n_children + 1) / 2, c->c_arena); in ast_for_import_stmt()
2636 c->c_arena); in ast_for_import_stmt()
2653 s = asdl_seq_new(NCH(n) / 2, c->c_arena); in ast_for_global_stmt()
2662 return Global(s, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_global_stmt()
2706 c->c_arena); in ast_for_exec_stmt()
2719 c->c_arena); in ast_for_assert_stmt()
2731 return Assert(expr1, expr2, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_assert_stmt()
2751 seq = asdl_seq_new(total, c->c_arena); in ast_for_suite()
2827 c->c_arena); in ast_for_if_stmt()
2850 c->c_arena); in ast_for_if_stmt()
2870 orelse = asdl_seq_new(1, c->c_arena); in ast_for_if_stmt()
2887 c->c_arena)); in ast_for_if_stmt()
2894 asdl_seq *newobj = asdl_seq_new(1, c->c_arena); in ast_for_if_stmt()
2907 CHILD(n, off)->n_col_offset, c->c_arena)); in ast_for_if_stmt()
2917 LINENO(n), n->n_col_offset, c->c_arena); in ast_for_if_stmt()
2942 c->c_arena); in ast_for_while_stmt()
2959 c->c_arena); in ast_for_while_stmt()
2994 target = Tuple(_target, Store, first->lineno, first->col_offset, c->c_arena); in ast_for_for_stmt()
3004 c->c_arena); in ast_for_for_stmt()
3020 exc->n_col_offset, c->c_arena); in ast_for_except_clause()
3034 exc->n_col_offset, c->c_arena); in ast_for_except_clause()
3052 exc->n_col_offset, c->c_arena); in ast_for_except_clause()
3109 asdl_seq *handlers = asdl_seq_new(n_except, c->c_arena); in ast_for_try_stmt()
3122 n->n_col_offset, c->c_arena); in ast_for_try_stmt()
3128 body = asdl_seq_new(1, c->c_arena); in ast_for_try_stmt()
3136 return TryFinally(body, finally, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_try_stmt()
3161 n->n_col_offset, c->c_arena); in ast_for_with_item()
3190 inner = asdl_seq_new(1, c->c_arena); in ast_for_with_stmt()
3219 n->n_col_offset, c->c_arena); in ast_for_classdef()
3230 n->n_col_offset, c->c_arena); in ast_for_classdef()
3245 LINENO(n), n->n_col_offset, c->c_arena); in ast_for_classdef()
3273 return Pass(LINENO(n), n->n_col_offset, c->c_arena); in ast_for_stmt()