Home
last modified time | relevance | path

Searched refs:IfExp (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython2/Tools/compiler/
Dast.txt25 IfExp: test, then, else_
/external/python/cpython3/Python/
Dast_unparse.c266 APPEND_EXPR(e->v.IfExp.body, PR_TEST + 1); in append_ast_ifexp()
268 APPEND_EXPR(e->v.IfExp.test, PR_TEST + 1); in append_ast_ifexp()
270 APPEND_EXPR(e->v.IfExp.orelse, PR_TEST); in append_ast_ifexp()
Dast_opt.c537 CALL(astfold_expr, expr_ty, node_->v.IfExp.test); in astfold_expr()
538 CALL(astfold_expr, expr_ty, node_->v.IfExp.body); in astfold_expr()
539 CALL(astfold_expr, expr_ty, node_->v.IfExp.orelse); in astfold_expr()
Dsymtable.c1410 VISIT(st, expr, e->v.IfExp.test); in symtable_visit_expr()
1411 VISIT(st, expr, e->v.IfExp.body); in symtable_visit_expr()
1412 VISIT(st, expr, e->v.IfExp.orelse); in symtable_visit_expr()
Dcompile.c2160 if (!compiler_jump_if(c, e->v.IfExp.test, next2, 0)) in compiler_jump_if()
2162 if (!compiler_jump_if(c, e->v.IfExp.body, next, cond)) in compiler_jump_if()
2166 if (!compiler_jump_if(c, e->v.IfExp.orelse, next, cond)) in compiler_jump_if()
2230 if (!compiler_jump_if(c, e->v.IfExp.test, next, 0)) in compiler_ifexp()
2232 VISIT(c, expr, e->v.IfExp.body); in compiler_ifexp()
2235 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp()
DPython-ast.c1845 IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, in IfExp() function
1868 p->v.IfExp.test = test; in IfExp()
1869 p->v.IfExp.body = body; in IfExp()
1870 p->v.IfExp.orelse = orelse; in IfExp()
3120 value = ast2obj_expr(o->v.IfExp.test); in ast2obj_expr()
3125 value = ast2obj_expr(o->v.IfExp.body); in ast2obj_expr()
3130 value = ast2obj_expr(o->v.IfExp.orelse); in ast2obj_expr()
6014 *out = IfExp(test, body, orelse, lineno, col_offset, arena); in obj2ast_expr()
Dast.c240 return validate_expr(exp->v.IfExp.test, Load) && in validate_expr()
241 validate_expr(exp->v.IfExp.body, Load) && in validate_expr()
242 validate_expr(exp->v.IfExp.orelse, Load); in validate_expr()
1738 return IfExp(expression, body, orelse, LINENO(n), n->n_col_offset, in ast_for_ifexpr()
/external/python/cpython2/Parser/
DPython.asdl57 | IfExp(expr test, expr body, expr orelse)
/external/python/cpython3/Parser/
DPython.asdl63 | IfExp(expr test, expr body, expr orelse)
/external/python/cpython2/Include/
DPython-ast.h221 } IfExp; member
461 #define IfExp(a0, a1, a2, a3, a4, a5) _Py_IfExp(a0, a1, a2, a3, a4, a5) macro
/external/python/cpython2/Python/
Dsymtable.c1218 VISIT(st, expr, e->v.IfExp.test); in symtable_visit_expr()
1219 VISIT(st, expr, e->v.IfExp.body); in symtable_visit_expr()
1220 VISIT(st, expr, e->v.IfExp.orelse); in symtable_visit_expr()
DPython-ast.c1584 IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, in IfExp() function
1607 p->v.IfExp.test = test; in IfExp()
1608 p->v.IfExp.body = body; in IfExp()
1609 p->v.IfExp.orelse = orelse; in IfExp()
2640 value = ast2obj_expr(o->v.IfExp.test); in ast2obj_expr()
2645 value = ast2obj_expr(o->v.IfExp.body); in ast2obj_expr()
2650 value = ast2obj_expr(o->v.IfExp.orelse); in ast2obj_expr()
5050 *out = IfExp(test, body, orelse, lineno, col_offset, arena); in obj2ast_expr()
Dcompile.c1482 VISIT(c, expr, e->v.IfExp.test); in compiler_ifexp()
1484 VISIT(c, expr, e->v.IfExp.body); in compiler_ifexp()
1487 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp()
Dast.c992 return IfExp(expression, body, orelse, LINENO(n), n->n_col_offset, in ast_for_ifexpr()
/external/python/cpython3/Include/
DPython-ast.h244 } IfExp; member
536 #define IfExp(a0, a1, a2, a3, a4, a5) _Py_IfExp(a0, a1, a2, a3, a4, a5) macro
/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2.py2057 new_value = ast.IfExp(body=uniform, test=old_value, orelse=gaussian)
/external/python/cpython2/PC/os2emx/
Dpython27.def714 "IfExp"
/external/python/cpython3/Lib/test/
Dtest_ast.py858 self.expr(ast.IfExp(*args), "must have Load context")
/external/python/cpython2/Lib/compiler/
Dtransformer.py603 return IfExp(test, then, else_, lineno=nodelist[1][2])
Dast.py713 class IfExp(Node): class