Lines Matching defs:orelse

238     Py_CLEAR(state->orelse);
337 if ((state->orelse = PyUnicode_InternFromString("orelse")) == NULL) return 0;
447 "orelse",
454 "orelse",
460 "orelse",
465 "orelse",
488 "orelse",
494 "orelse",
549 "orelse",
1141 " | For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)\n"
1142 " | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)\n"
1143 " | While(expr test, stmt* body, stmt* orelse)\n"
1144 " | If(expr test, stmt* body, stmt* orelse)\n"
1149 " | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)\n"
1150 " | TryStar(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)\n"
1220 "For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)");
1226 "AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)");
1233 "While(expr test, stmt* body, stmt* orelse)");
1236 "If(expr test, stmt* body, stmt* orelse)");
1264 "Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)");
1268 "TryStar(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)");
1316 " | IfExp(expr test, expr body, expr orelse)\n"
1367 "IfExp(expr test, expr body, expr orelse)");
2180 orelse, string type_comment, int lineno, int col_offset, int
2201 p->v.For.orelse = orelse;
2212 asdl_stmt_seq * orelse, string type_comment, int lineno, int
2233 p->v.AsyncFor.orelse = orelse;
2243 _PyAST_While(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int
2259 p->v.While.orelse = orelse;
2268 _PyAST_If(expr_ty test, asdl_stmt_seq * body, asdl_stmt_seq * orelse, int
2284 p->v.If.orelse = orelse;
2375 asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int lineno, int
2385 p->v.Try.orelse = orelse;
2396 asdl_stmt_seq * orelse, asdl_stmt_seq * finalbody, int lineno,
2407 p->v.TryStar.orelse = orelse;
2722 _PyAST_IfExp(expr_ty test, expr_ty body, expr_ty orelse, int lineno, int
2736 if (!orelse) {
2738 "field 'orelse' is required for IfExp");
2747 p->v.IfExp.orelse = orelse;
3913 value = ast2obj_list(state, (asdl_seq*)o->v.For.orelse, ast2obj_stmt);
3915 if (PyObject_SetAttr(result, state->orelse, value) == -1)
3944 value = ast2obj_list(state, (asdl_seq*)o->v.AsyncFor.orelse,
3947 if (PyObject_SetAttr(result, state->orelse, value) == -1)
3970 value = ast2obj_list(state, (asdl_seq*)o->v.While.orelse, ast2obj_stmt);
3972 if (PyObject_SetAttr(result, state->orelse, value) == -1)
3990 value = ast2obj_list(state, (asdl_seq*)o->v.If.orelse, ast2obj_stmt);
3992 if (PyObject_SetAttr(result, state->orelse, value) == -1)
4085 value = ast2obj_list(state, (asdl_seq*)o->v.Try.orelse, ast2obj_stmt);
4087 if (PyObject_SetAttr(result, state->orelse, value) == -1)
4112 value = ast2obj_list(state, (asdl_seq*)o->v.TryStar.orelse,
4115 if (PyObject_SetAttr(result, state->orelse, value) == -1)
4358 value = ast2obj_expr(state, o->v.IfExp.orelse);
4360 if (PyObject_SetAttr(result, state->orelse, value) == -1)
6640 asdl_stmt_seq* orelse;
6714 if (_PyObject_LookupAttr(obj, state->orelse, &tmp) < 0) {
6718 PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from For");
6726 PyErr_Format(PyExc_TypeError, "For field \"orelse\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
6730 orelse = _Py_asdl_stmt_seq_new(len, arena);
6731 if (orelse == NULL) goto failed;
6744 PyErr_SetString(PyExc_RuntimeError, "For field \"orelse\" changed size during iteration");
6747 asdl_seq_SET(orelse, i, val);
6768 *out = _PyAST_For(target, iter, body, orelse, type_comment, lineno,
6782 asdl_stmt_seq* orelse;
6856 if (_PyObject_LookupAttr(obj, state->orelse, &tmp) < 0) {
6860 PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from AsyncFor");
6868 PyErr_Format(PyExc_TypeError, "AsyncFor field \"orelse\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
6872 orelse = _Py_asdl_stmt_seq_new(len, arena);
6873 if (orelse == NULL) goto failed;
6886 PyErr_SetString(PyExc_RuntimeError, "AsyncFor field \"orelse\" changed size during iteration");
6889 asdl_seq_SET(orelse, i, val);
6910 *out = _PyAST_AsyncFor(target, iter, body, orelse, type_comment,
6924 asdl_stmt_seq* orelse;
6980 if (_PyObject_LookupAttr(obj, state->orelse, &tmp) < 0) {
6984 PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from While");
6992 PyErr_Format(PyExc_TypeError, "While field \"orelse\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
6996 orelse = _Py_asdl_stmt_seq_new(len, arena);
6997 if (orelse == NULL) goto failed;
7010 PyErr_SetString(PyExc_RuntimeError, "While field \"orelse\" changed size during iteration");
7013 asdl_seq_SET(orelse, i, val);
7017 *out = _PyAST_While(test, body, orelse, lineno, col_offset, end_lineno,
7030 asdl_stmt_seq* orelse;
7086 if (_PyObject_LookupAttr(obj, state->orelse, &tmp) < 0) {
7090 PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from If");
7098 PyErr_Format(PyExc_TypeError, "If field \"orelse\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
7102 orelse = _Py_asdl_stmt_seq_new(len, arena);
7103 if (orelse == NULL) goto failed;
7116 PyErr_SetString(PyExc_RuntimeError, "If field \"orelse\" changed size during iteration");
7119 asdl_seq_SET(orelse, i, val);
7123 *out = _PyAST_If(test, body, orelse, lineno, col_offset, end_lineno,
7464 asdl_stmt_seq* orelse;
7541 if (_PyObject_LookupAttr(obj, state->orelse, &tmp) < 0) {
7545 PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from Try");
7553 PyErr_Format(PyExc_TypeError, "Try field \"orelse\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
7557 orelse = _Py_asdl_stmt_seq_new(len, arena);
7558 if (orelse == NULL) goto failed;
7571 PyErr_SetString(PyExc_RuntimeError, "Try field \"orelse\" changed size during iteration");
7574 asdl_seq_SET(orelse, i, val);
7615 *out = _PyAST_Try(body, handlers, orelse, finalbody, lineno,
7628 asdl_stmt_seq* orelse;
7705 if (_PyObject_LookupAttr(obj, state->orelse, &tmp) < 0) {
7709 PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from TryStar");
7717 PyErr_Format(PyExc_TypeError, "TryStar field \"orelse\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
7721 orelse = _Py_asdl_stmt_seq_new(len, arena);
7722 if (orelse == NULL) goto failed;
7735 PyErr_SetString(PyExc_RuntimeError, "TryStar field \"orelse\" changed size during iteration");
7738 asdl_seq_SET(orelse, i, val);
7779 *out = _PyAST_TryStar(body, handlers, orelse, finalbody, lineno,
8512 expr_ty orelse;
8548 if (_PyObject_LookupAttr(obj, state->orelse, &tmp) < 0) {
8552 PyErr_SetString(PyExc_TypeError, "required field \"orelse\" missing from IfExp");
8560 res = obj2ast_expr(state, tmp, &orelse, arena);
8565 *out = _PyAST_IfExp(test, body, orelse, lineno, col_offset, end_lineno,