/external/python/cpython2/Include/ |
D | Python-ast.h | 9 typedef struct _expr *expr_ty; typedef 52 expr_ty body; 87 expr_ty value; 96 expr_ty value; 100 expr_ty target; 102 expr_ty value; 106 expr_ty dest; 112 expr_ty target; 113 expr_ty iter; 119 expr_ty test; [all …]
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 9 typedef struct _expr *expr_ty; typedef 56 expr_ty body; 82 expr_ty returns; 90 expr_ty returns; 102 expr_ty value; 111 expr_ty value; 115 expr_ty target; 117 expr_ty value; 121 expr_ty target; 122 expr_ty annotation; [all …]
|
D | ast.h | 22 PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);
|
/external/python/cpython3/Python/ |
D | ast_opt.c | 11 is_const(expr_ty e) in is_const() 27 get_const_value(expr_ty e) in get_const_value() 48 make_const(expr_ty node, PyObject *val, PyArena *arena) in make_const() 78 fold_unaryop(expr_ty node, PyArena *arena, int optimize) in fold_unaryop() 80 expr_ty arg = node->v.UnaryOp.operand; in fold_unaryop() 255 fold_binop(expr_ty node, PyArena *arena, int optimize) in fold_binop() 257 expr_ty lhs, rhs; in fold_binop() 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() 337 fold_tuple(expr_ty node, PyArena *arena, int optimize) in fold_tuple() [all …]
|
D | ast_unparse.c | 12 expr_as_unicode(expr_ty e, int level); 14 append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level); 16 append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec); 18 append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec); 99 append_ast_boolop(_PyUnicodeWriter *writer, expr_ty e, int level) in append_ast_boolop() 113 APPEND_EXPR((expr_ty)asdl_seq_GET(values, i), pr + 1); in append_ast_boolop() 121 append_ast_binop(_PyUnicodeWriter *writer, expr_ty e, int level) in append_ast_binop() 156 append_ast_unaryop(_PyUnicodeWriter *writer, expr_ty e, int level) in append_ast_unaryop() 210 APPEND_EXPR((expr_ty)asdl_seq_GET(args->defaults, di), PR_TEST); in append_ast_args() 232 expr_ty default_ = (expr_ty)asdl_seq_GET(args->kw_defaults, di); in append_ast_args() [all …]
|
D | Python-ast.c | 1172 static int obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena); 1215 Expression(expr_ty body, PyArena *arena) in Expression() 1245 decorator_list, expr_ty returns, int lineno, int col_offset, in FunctionDef() 1275 * decorator_list, expr_ty returns, int lineno, int col_offset, in AsyncFunctionDef() 1329 Return(expr_ty value, int lineno, int col_offset, PyArena *arena) in Return() 1357 Assign(asdl_seq * targets, expr_ty value, int lineno, int col_offset, PyArena in Assign() 1378 AugAssign(expr_ty target, operator_ty op, expr_ty value, int lineno, int in AugAssign() 1410 AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int simple, int in AnnAssign() 1438 For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, int in For() 1466 AsyncFor(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, int in AsyncFor() [all …]
|
D | ast.c | 20 static int validate_expr(expr_ty, expr_context_ty); 182 validate_expr(expr_ty exp, expr_context_ty ctx) in validate_expr() 541 expr_ty expr = asdl_seq_GET(exprs, i); in validate_exprs() 595 static expr_ty ast_for_expr(struct compiling *, const node *); 600 static expr_ty ast_for_testlist(struct compiling *, const node *); 607 static expr_ty ast_for_call(struct compiling *, const node *, expr_ty, bool); 610 static expr_ty parsestrplus(struct compiling *, const node *n); 818 expr_ty testlist_ast; in PyAST_FromNodeObject() 965 set_context(struct compiling *c, expr_ty e, expr_context_ty ctx, const node *n) in set_context() 1085 if (!set_context(c, (expr_ty)asdl_seq_GET(s, i), ctx, n)) in set_context() [all …]
|
D | compile.c | 180 static int compiler_visit_expr(struct compiler *, expr_ty); 194 static int expr_constant(expr_ty); 208 expr_ty elt, expr_ty val, int type); 213 expr_ty elt, expr_ty val, int type); 1380 is_const(expr_ty e) in is_const() 1396 get_const_value(expr_ty e) in get_const_value() 1661 VISIT(c, expr, (expr_ty)asdl_seq_GET(decos, i)); in compiler_decorators() 1679 expr_ty default_ = asdl_seq_GET(kw_defaults, i); in compiler_visit_kwonlydefaults() 1727 compiler_visit_annexpr(struct compiler *c, expr_ty annotation) in compiler_visit_annexpr() 1740 expr_ty annotation, PyObject *names) in compiler_visit_argannotation() [all …]
|
D | symtable.c | 184 static int symtable_visit_expr(struct symtable *st, expr_ty s); 185 static int symtable_visit_genexp(struct symtable *st, expr_ty s); 186 static int symtable_visit_listcomp(struct symtable *st, expr_ty s); 187 static int symtable_visit_setcomp(struct symtable *st, expr_ty s); 188 static int symtable_visit_dictcomp(struct symtable *st, expr_ty s); 198 static int symtable_visit_annotations(struct symtable *st, stmt_ty s, arguments_ty, expr_ty); 1174 expr_ty e_name = s->v.AnnAssign.target; in symtable_visit_stmt() 1374 symtable_visit_expr(struct symtable *st, expr_ty e) in symtable_visit_expr() 1560 arguments_ty a, expr_ty returns) in symtable_visit_annotations() 1706 symtable_handle_comprehension(struct symtable *st, expr_ty e, in symtable_handle_comprehension() [all …]
|
/external/python/cpython2/Python/ |
D | ast.c | 27 static expr_ty ast_for_expr(struct compiling *, const node *); 32 static expr_ty ast_for_testlist(struct compiling *, const node *); 34 static expr_ty ast_for_testlist_comp(struct compiling *, const node *); 37 static expr_ty ast_for_call(struct compiling *, const node *, expr_ty); 272 expr_ty testlist_ast; in PyAST_FromNode() 370 set_context(struct compiling *c, expr_ty e, expr_context_ty ctx, const node *n) in set_context() 480 if (!set_context(c, (expr_ty)asdl_seq_GET(s, i), ctx, n)) in set_context() 582 expr_ty expression; in seq_for_testlist() 607 static expr_ty 611 expr_ty result; in compiler_complex_args() [all …]
|
D | Python-ast.c | 971 static int obj2ast_expr(PyObject* obj, expr_ty* out, PyArena* arena); 1012 Expression(expr_ty body, PyArena *arena) in Expression() 1092 Return(expr_ty value, int lineno, int col_offset, PyArena *arena) in Return() 1120 Assign(asdl_seq * targets, expr_ty value, int lineno, int col_offset, PyArena in Assign() 1141 AugAssign(expr_ty target, operator_ty op, expr_ty value, int lineno, int in AugAssign() 1173 Print(expr_ty dest, asdl_seq * values, bool nl, int lineno, int col_offset, in Print() 1190 For(expr_ty target, expr_ty iter, asdl_seq * body, asdl_seq * orelse, int in For() 1218 While(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in While() 1240 If(expr_ty test, asdl_seq * body, asdl_seq * orelse, int lineno, int in If() 1262 With(expr_ty context_expr, expr_ty optional_vars, asdl_seq * body, int lineno, in With() [all …]
|
D | compile.c | 164 static int compiler_visit_expr(struct compiler *, expr_ty); 177 static int expr_constant(expr_ty e); 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() 1471 compiler_ifexp(struct compiler *c, expr_ty e) in compiler_ifexp() 1493 compiler_lambda(struct compiler *c, expr_ty e) in compiler_lambda() 1552 expr_ty e = (expr_ty)asdl_seq_GET(s->v.Print.values, i); in compiler_print() 2108 (expr_ty)asdl_seq_GET(s->v.Assign.targets, i)); in compiler_visit_stmt() 2439 compiler_boolop(struct compiler *c, expr_ty e) in compiler_boolop() 2457 VISIT(c, expr, (expr_ty)asdl_seq_GET(s, i)); in compiler_boolop() [all …]
|
D | symtable.c | 171 static int symtable_visit_expr(struct symtable *st, expr_ty s); 172 static int symtable_visit_listcomp(struct symtable *st, expr_ty e); 173 static int symtable_visit_genexp(struct symtable *st, expr_ty s); 174 static int symtable_visit_setcomp(struct symtable *st, expr_ty e); 175 static int symtable_visit_dictcomp(struct symtable *st, expr_ty e); 1190 symtable_visit_expr(struct symtable *st, expr_ty e) in symtable_visit_expr() 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() 1502 symtable_handle_comprehension(struct symtable *st, expr_ty e, in symtable_handle_comprehension() 1504 expr_ty elt, expr_ty value) in symtable_handle_comprehension() [all …]
|
D | future.c | 106 expr_ty e = s->v.Expr.value; in future_parse()
|