Home
last modified time | relevance | path

Searched refs:ExceptHandler (Results 1 - 7 of 7) sorted by relevance

/third_party/python/Python/
H A Dast.c853 if ((handler->v.ExceptHandler.type && in validate_stmt()
854 !validate_expr(state, handler->v.ExceptHandler.type, Load)) || in validate_stmt()
855 !validate_body(state, handler->v.ExceptHandler.body, "ExceptHandler")) in validate_stmt()
878 if ((handler->v.ExceptHandler.type && in validate_stmt()
879 !validate_expr(state, handler->v.ExceptHandler.type, Load)) || in validate_stmt()
880 !validate_body(state, handler->v.ExceptHandler.body, "ExceptHandler")) in validate_stmt()
H A Dcompile.c148 } ExceptHandler; typedef
1888 if (find_ann(handler->v.ExceptHandler.body)) { in find_ann()
1900 if (find_ann(handler->v.ExceptHandler.body)) { in find_ann()
3513 if (!handler->v.ExceptHandler.type && i < n-1) { in compiler_try_except()
3519 if (handler->v.ExceptHandler.type) { in compiler_try_except()
3520 VISIT(c, expr, handler->v.ExceptHandler.type); in compiler_try_except()
3524 if (handler->v.ExceptHandler.name) { in compiler_try_except()
3533 compiler_nameop(c, handler->v.ExceptHandler.name, Store); in compiler_try_except()
3549 if (!compiler_push_fblock(c, HANDLER_CLEANUP, cleanup_body, NULL, handler->v.ExceptHandler.name)) in compiler_try_except()
3553 VISIT_SEQ(c, stmt, handler->v.ExceptHandler in compiler_try_except()
[all...]
H A Dsymtable.c1908 if (eh->v.ExceptHandler.type) in symtable_visit_excepthandler()
1909 VISIT(st, expr, eh->v.ExceptHandler.type); in symtable_visit_excepthandler()
1910 if (eh->v.ExceptHandler.name) in symtable_visit_excepthandler()
1911 if (!symtable_add_def(st, eh->v.ExceptHandler.name, DEF_LOCAL, LOCATION(eh))) in symtable_visit_excepthandler()
1913 VISIT_SEQ(st, stmt, eh->v.ExceptHandler.body); in symtable_visit_excepthandler()
H A Dast_opt.c999 CALL_OPT(astfold_expr, expr_ty, node_->v.ExceptHandler.type); in astfold_excepthandler()
1000 CALL_SEQ(astfold_stmt, stmt, node_->v.ExceptHandler.body); in astfold_excepthandler()
H A DPython-ast.c1705 "excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body)"); in init_types()
1715 state->ExceptHandler_type = make_type(state, "ExceptHandler", in init_types()
1718 "ExceptHandler(expr? type, identifier? name, stmt* body)"); in init_types()
3294 p->v.ExceptHandler.type = type; in _PyAST_ExceptHandler()
3295 p->v.ExceptHandler.name = name; in _PyAST_ExceptHandler()
3296 p->v.ExceptHandler.body = body; in _PyAST_ExceptHandler()
4921 value = ast2obj_expr(state, o->v.ExceptHandler.type); in ast2obj_excepthandler()
4926 value = ast2obj_identifier(state, o->v.ExceptHandler.name); in ast2obj_excepthandler()
4931 value = ast2obj_list(state, (asdl_seq*)o->v.ExceptHandler.body, in ast2obj_excepthandler()
10422 if (_Py_EnterRecursiveCall(" while traversing 'ExceptHandler' nod in obj2ast_excepthandler()
[all...]
/third_party/python/Lib/test/
H A Dtest_ast.py1454 t = ast.Try([p], [ast.ExceptHandler(None, "x", [])], [], [])
1455 self.stmt(t, "empty body on ExceptHandler")
1456 e = [ast.ExceptHandler(ast.Name("x", ast.Store()), "y", [p])]
1458 e = [ast.ExceptHandler(None, "x", [p])]
1474 t = ast.TryStar([p], [ast.ExceptHandler(None, "x", [])], [], [])
1475 self.stmt(t, "empty body on ExceptHandler")
1476 e = [ast.ExceptHandler(ast.Name("x", ast.Store()), "y", [p])]
1478 e = [ast.ExceptHandler(None, "x", [p])]
2503 ('Module', [('Try', (1, 0, 4, 6), [('Pass', (2, 2, 2, 6))], [('ExceptHandler', (3, 0, 4, 6), ('Name', (3, 7, 3, 16), 'Exception', ('Load',)), None, [('Pass', (4, 2, 4, 6))])], [], [])], []),
2505 ('Module', [('TryStar', (1, 0, 4, 6), [('Pass', (2, 2, 2, 6))], [('ExceptHandler', (
[all...]
/third_party/python/Include/internal/
H A Dpycore_ast.h511 } ExceptHandler; member

Completed in 31 milliseconds