Home
last modified time | relevance | path

Searched refs:orelse (Results 1 - 10 of 10) sorted by relevance

/third_party/python/Include/internal/
H A Dpycore_ast.h245 asdl_stmt_seq *orelse; member
253 asdl_stmt_seq *orelse; member
260 asdl_stmt_seq *orelse; member
266 asdl_stmt_seq *orelse; member
294 asdl_stmt_seq *orelse; member
301 asdl_stmt_seq *orelse; member
379 expr_ty orelse; member
670 asdl_stmt_seq * orelse, string type_comment, int lineno, int
674 asdl_stmt_seq * orelse, string type_comment, int
678 orelse, in
[all...]
H A Dpycore_ast_state.h225 PyObject *orelse; member
/third_party/python/Python/
H A Dast.c284 validate_expr(state, exp->v.IfExp.orelse, Load); in validate_expr()
770 validate_stmts(state, stmt->v.For.orelse); in validate_stmt()
776 validate_stmts(state, stmt->v.AsyncFor.orelse); in validate_stmt()
781 validate_stmts(state, stmt->v.While.orelse); in validate_stmt()
786 validate_stmts(state, stmt->v.If.orelse); in validate_stmt()
846 asdl_seq_LEN(stmt->v.Try.orelse)) { in validate_stmt()
847 PyErr_SetString(PyExc_ValueError, "Try has orelse but no except handlers"); in validate_stmt()
860 (!asdl_seq_LEN(stmt->v.Try.orelse) || in validate_stmt()
861 validate_stmts(state, stmt->v.Try.orelse)); in validate_stmt()
872 asdl_seq_LEN(stmt->v.TryStar.orelse)) { in validate_stmt()
[all...]
H A DPython-ast.c238 Py_CLEAR(state->orelse); in _PyAST_Fini()
337 if ((state->orelse = PyUnicode_InternFromString("orelse")) == NULL) return 0; in init_identifiers()
447 "orelse",
454 "orelse",
460 "orelse",
465 "orelse",
488 "orelse",
494 "orelse",
549 "orelse",
2179 _PyAST_For(expr_ty target, expr_ty iter, asdl_stmt_seq * body, asdl_stmt_seq * orelse, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_For() argument
2211 _PyAST_AsyncFor(expr_ty target, expr_ty iter, asdl_stmt_seq * body, asdl_stmt_seq * orelse, string type_comment, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_AsyncFor() argument
2243 _PyAST_While(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_While() argument
2268 _PyAST_If(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_If() argument
2374 _PyAST_Try(asdl_stmt_seq * body, asdl_excepthandler_seq * handlers, asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_Try() argument
2395 _PyAST_TryStar(asdl_stmt_seq * body, asdl_excepthandler_seq * handlers, asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_TryStar() argument
2722 _PyAST_IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) _PyAST_IfExp() argument
6640 asdl_stmt_seq* orelse; obj2ast_stmt() local
6782 asdl_stmt_seq* orelse; obj2ast_stmt() local
6924 asdl_stmt_seq* orelse; obj2ast_stmt() local
7030 asdl_stmt_seq* orelse; obj2ast_stmt() local
7464 asdl_stmt_seq* orelse; obj2ast_stmt() local
7628 asdl_stmt_seq* orelse; obj2ast_stmt() local
8512 expr_ty orelse; obj2ast_expr() local
[all...]
H A Dast_opt.c732 CALL(astfold_expr, expr_ty, node_->v.IfExp.orelse); in astfold_expr()
923 CALL_SEQ(astfold_stmt, stmt, node_->v.For.orelse); in astfold_stmt()
931 CALL_SEQ(astfold_stmt, stmt, node_->v.AsyncFor.orelse); in astfold_stmt()
936 CALL_SEQ(astfold_stmt, stmt, node_->v.While.orelse); in astfold_stmt()
941 CALL_SEQ(astfold_stmt, stmt, node_->v.If.orelse); in astfold_stmt()
958 CALL_SEQ(astfold_stmt, stmt, node_->v.Try.orelse); in astfold_stmt()
964 CALL_SEQ(astfold_stmt, stmt, node_->v.TryStar.orelse); in astfold_stmt()
H A Dsymtable.c1302 if (s->v.For.orelse) in symtable_visit_stmt()
1303 VISIT_SEQ(st, stmt, s->v.For.orelse); in symtable_visit_stmt()
1308 if (s->v.While.orelse) in symtable_visit_stmt()
1309 VISIT_SEQ(st, stmt, s->v.While.orelse); in symtable_visit_stmt()
1315 if (s->v.If.orelse) in symtable_visit_stmt()
1316 VISIT_SEQ(st, stmt, s->v.If.orelse); in symtable_visit_stmt()
1332 VISIT_SEQ(st, stmt, s->v.Try.orelse); in symtable_visit_stmt()
1338 VISIT_SEQ(st, stmt, s->v.TryStar.orelse); in symtable_visit_stmt()
1468 if (s->v.AsyncFor.orelse) in symtable_visit_stmt()
1469 VISIT_SEQ(st, stmt, s->v.AsyncFor.orelse); in symtable_visit_stmt()
[all...]
H A Dcompile.c1864 find_ann(st->v.For.orelse); in find_ann()
1868 find_ann(st->v.AsyncFor.orelse); in find_ann()
1872 find_ann(st->v.While.orelse); in find_ann()
1876 find_ann(st->v.If.orelse); in find_ann()
1894 find_ann(st->v.Try.orelse); in find_ann()
1906 find_ann(st->v.TryStar.orelse); in find_ann()
2936 if (!compiler_jump_if(c, e->v.IfExp.orelse, next, cond)) in compiler_jump_if()
3006 VISIT(c, expr, e->v.IfExp.orelse); in compiler_ifexp()
3077 if (asdl_seq_LEN(s->v.If.orelse)) { in compiler_if()
3090 if (asdl_seq_LEN(s->v.If.orelse)) { in compiler_if()
3671 basicblock *orelse = compiler_new_block(c); compiler_try_star_except() local
[all...]
H A Dast_unparse.c303 APPEND_EXPR(e->v.IfExp.orelse, PR_TEST); in append_ast_ifexp()
/third_party/python/Lib/
H A Dast.py971 if node.orelse:
974 self.traverse(node.orelse)
1066 if node.orelse:
1069 self.traverse(node.orelse)
1077 while node.orelse and len(node.orelse) == 1 and isinstance(node.orelse[0], If):
1078 node = node.orelse[0]
1084 if node.orelse:
1087 self.traverse(node.orelse)
[all...]
/third_party/python/Lib/test/
H A Dtest_ast.py1142 elif_stmt = node.body[0].orelse[0]
1148 elif_stmt = node.body[0].orelse[0]
1453 self.stmt(t, "Try has orelse but no except handlers")
1473 self.stmt(t, "TryStar has orelse but no except handlers")
2101 self._check_content(s, if_stmt.orelse[0].test, 'other()')

Completed in 30 milliseconds