Home
last modified time | relevance | path

Searched refs:ExceptHandler (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython2/Python/
Dsymtable.c1394 if (eh->v.ExceptHandler.type) in symtable_visit_excepthandler()
1395 VISIT(st, expr, eh->v.ExceptHandler.type); in symtable_visit_excepthandler()
1396 if (eh->v.ExceptHandler.name) in symtable_visit_excepthandler()
1397 VISIT(st, expr, eh->v.ExceptHandler.name); in symtable_visit_excepthandler()
1398 VISIT_SEQ(st, stmt, eh->v.ExceptHandler.body); in symtable_visit_excepthandler()
Dcompile.c1848 if (!handler->v.ExceptHandler.type && i < n-1) in compiler_try_except()
1855 if (handler->v.ExceptHandler.type) { in compiler_try_except()
1857 VISIT(c, expr, handler->v.ExceptHandler.type); in compiler_try_except()
1862 if (handler->v.ExceptHandler.name) { in compiler_try_except()
1863 VISIT(c, expr, handler->v.ExceptHandler.name); in compiler_try_except()
1869 VISIT_SEQ(c, stmt, handler->v.ExceptHandler.body); in compiler_try_except()
DPython-ast.c2062 ExceptHandler(expr_ty type, expr_ty name, asdl_seq * body, int lineno, int in ExceptHandler() function
2070 p->v.ExceptHandler.type = type; in ExceptHandler()
2071 p->v.ExceptHandler.name = name; in ExceptHandler()
2072 p->v.ExceptHandler.body = body; in ExceptHandler()
3187 value = ast2obj_expr(o->v.ExceptHandler.type); in ast2obj_excepthandler()
3192 value = ast2obj_expr(o->v.ExceptHandler.name); in ast2obj_excepthandler()
3197 value = ast2obj_list(o->v.ExceptHandler.body, ast2obj_stmt); in ast2obj_excepthandler()
6573 *out = ExceptHandler(type, name, body, lineno, col_offset, in obj2ast_excepthandler()
Dast.c3021 return ExceptHandler(NULL, NULL, suite_seq, LINENO(exc), in ast_for_except_clause()
3035 return ExceptHandler(expression, NULL, suite_seq, LINENO(exc), in ast_for_except_clause()
3053 return ExceptHandler(expression, e, suite_seq, LINENO(exc), in ast_for_except_clause()
/external/python/cpython3/Python/
Dsymtable.c1602 if (eh->v.ExceptHandler.type) in symtable_visit_excepthandler()
1603 VISIT(st, expr, eh->v.ExceptHandler.type); in symtable_visit_excepthandler()
1604 if (eh->v.ExceptHandler.name) in symtable_visit_excepthandler()
1605 if (!symtable_add_def(st, eh->v.ExceptHandler.name, DEF_LOCAL)) in symtable_visit_excepthandler()
1607 VISIT_SEQ(st, stmt, eh->v.ExceptHandler.body); in symtable_visit_excepthandler()
Dcompile.c1455 if (find_ann(handler->v.ExceptHandler.body)) { in find_ann()
2653 if (!handler->v.ExceptHandler.type && i < n-1) in compiler_try_except()
2661 if (handler->v.ExceptHandler.type) { in compiler_try_except()
2663 VISIT(c, expr, handler->v.ExceptHandler.type); in compiler_try_except()
2668 if (handler->v.ExceptHandler.name) { in compiler_try_except()
2677 compiler_nameop(c, handler->v.ExceptHandler.name, Store); in compiler_try_except()
2698 VISIT_SEQ(c, stmt, handler->v.ExceptHandler.body); in compiler_try_except()
2710 compiler_nameop(c, handler->v.ExceptHandler.name, Store); in compiler_try_except()
2713 compiler_nameop(c, handler->v.ExceptHandler.name, Del); in compiler_try_except()
2731 VISIT_SEQ(c, stmt, handler->v.ExceptHandler.body); in compiler_try_except()
Dast_opt.c779 CALL_OPT(astfold_expr, expr_ty, node_->v.ExceptHandler.type); in astfold_excepthandler()
780 CALL_SEQ(astfold_stmt, stmt_ty, node_->v.ExceptHandler.body); in astfold_excepthandler()
Dast.c475 if ((handler->v.ExceptHandler.type && in validate_stmt()
476 !validate_expr(handler->v.ExceptHandler.type, Load)) || in validate_stmt()
477 !validate_body(handler->v.ExceptHandler.body, "ExceptHandler")) in validate_stmt()
3742 return ExceptHandler(NULL, NULL, suite_seq, LINENO(exc), in ast_for_except_clause()
3756 return ExceptHandler(expression, NULL, suite_seq, LINENO(exc), in ast_for_except_clause()
3774 return ExceptHandler(expression, e, suite_seq, LINENO(exc), in ast_for_except_clause()
DPython-ast.c2463 ExceptHandler(expr_ty type, identifier name, asdl_seq * body, int lineno, int in ExceptHandler() function
2471 p->v.ExceptHandler.type = type; in ExceptHandler()
2472 p->v.ExceptHandler.name = name; in ExceptHandler()
2473 p->v.ExceptHandler.body = body; in ExceptHandler()
3737 value = ast2obj_expr(o->v.ExceptHandler.type); in ast2obj_excepthandler()
3742 value = ast2obj_identifier(o->v.ExceptHandler.name); in ast2obj_excepthandler()
3747 value = ast2obj_list(o->v.ExceptHandler.body, ast2obj_stmt); in ast2obj_excepthandler()
7784 *out = ExceptHandler(type, name, body, lineno, col_offset, arena); in obj2ast_excepthandler()
/external/python/cpython2/Parser/
DPython.asdl104 excepthandler = ExceptHandler(expr? type, expr? name, stmt* body)
/external/python/cpython3/Parser/
DPython.asdl115 excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body)
/external/python/cpython2/Include/
DPython-ast.h350 } ExceptHandler; member
522 #define ExceptHandler(a0, a1, a2, a3, a4, a5) _Py_ExceptHandler(a0, a1, a2, a3, a4, a5) macro
/external/python/cpython3/Lib/test/
Dtest_ast.py797 t = ast.Try([p], [ast.ExceptHandler(None, "x", [])], [], [])
799 e = [ast.ExceptHandler(ast.Name("x", ast.Store()), "y", [p])]
801 e = [ast.ExceptHandler(None, "x", [p])]
/external/python/cpython3/Include/
DPython-ast.h403 } ExceptHandler; member
616 #define ExceptHandler(a0, a1, a2, a3, a4, a5) _Py_ExceptHandler(a0, a1, a2, a3, a4, a5) macro