Lines Matching defs:body

1863             res = find_ann(st->v.For.body) ||
1867 res = find_ann(st->v.AsyncFor.body) ||
1871 res = find_ann(st->v.While.body) ||
1875 res = find_ann(st->v.If.body) ||
1879 res = find_ann(st->v.With.body);
1882 res = find_ann(st->v.AsyncWith.body);
1888 if (find_ann(handler->v.ExceptHandler.body)) {
1892 res = find_ann(st->v.Try.body) ||
1900 if (find_ann(handler->v.ExceptHandler.body)) {
1904 res = find_ann(st->v.TryStar.body) ||
1912 if (find_ann(match_case->body)) {
2151 If body is empty, then lineno will be set later in assemble. */
2193 if (!compiler_body(c, mod->v.Module.body)) {
2199 if (find_ann(mod->v.Interactive.body)) {
2203 VISIT_SEQ_IN_SCOPE(c, stmt, mod->v.Interactive.body);
2206 VISIT_IN_SCOPE(c, expr, mod->v.Expression.body);
2597 asdl_stmt_seq *body;
2610 body = s->v.AsyncFunctionDef.body;
2620 body = s->v.FunctionDef.body;
2655 docstring = _PyAST_GetDocString(body);
2665 for (i = docstring ? 1 : 0; i < asdl_seq_LEN(body); i++) {
2666 VISIT_IN_SCOPE(c, stmt, (stmt_ty)asdl_seq_GET(body, i));
2709 <func> is a zero arg function/closure created from the class body.
2717 /* 1. compile the class body into a code object */
2743 /* compile the body proper */
2744 if (!compiler_body(c, s->v.ClassDef.body)) {
2932 if (!compiler_jump_if(c, e->v.IfExp.body, next, cond))
3003 VISIT(c, expr, e->v.IfExp.body);
3041 VISIT_IN_SCOPE(c, expr, e->v.Lambda.body);
3089 VISIT_SEQ(c, stmt, s->v.If.body);
3102 basicblock *start, *body, *cleanup, *end;
3105 body = compiler_new_block(c);
3108 if (start == NULL || body == NULL || end == NULL || cleanup == NULL) {
3118 compiler_use_next_block(c, body);
3120 VISIT_SEQ(c, stmt, s->v.For.body);
3167 VISIT_SEQ(c, stmt, s->v.AsyncFor.body);
3178 * as the END_ASYNC_FOR succeeds the `for`, not the body. */
3193 basicblock *loop, *body, *end, *anchor = NULL;
3195 body = compiler_new_block(c);
3198 if (loop == NULL || body == NULL || anchor == NULL || end == NULL) {
3209 compiler_use_next_block(c, body);
3210 VISIT_SEQ(c, stmt, s->v.While.body);
3212 if (!compiler_jump_if(c, s->v.While.test, body, 1)) {
3319 /* Code generated for "try: <body> finally: <finalbody>" is as follows:
3322 <code for body>
3351 basicblock *body, *end, *exit, *cleanup;
3353 body = compiler_new_block(c);
3357 if (body == NULL || end == NULL || exit == NULL || cleanup == NULL) {
3362 compiler_use_next_block(c, body);
3363 if (!compiler_push_fblock(c, FINALLY_TRY, body, end, s->v.Try.finalbody))
3370 VISIT_SEQ(c, stmt, s->v.Try.body);
3373 compiler_pop_fblock(c, FINALLY_TRY, body);
3396 basicblock *body = compiler_new_block(c);
3397 if (body == NULL) {
3414 compiler_use_next_block(c, body);
3415 if (!compiler_push_fblock(c, FINALLY_TRY, body, end, s->v.TryStar.finalbody)) {
3424 VISIT_SEQ(c, stmt, s->v.TryStar.body);
3427 compiler_pop_fblock(c, FINALLY_TRY, body);
3480 basicblock *body, *except, *end, *cleanup;
3483 body = compiler_new_block(c);
3487 if (body == NULL || except == NULL || end == NULL || cleanup == NULL)
3490 compiler_use_next_block(c, body);
3491 if (!compiler_push_fblock(c, TRY_EXCEPT, body, NULL, NULL))
3493 VISIT_SEQ(c, stmt, s->v.Try.body);
3494 compiler_pop_fblock(c, TRY_EXCEPT, body);
3537 # body
3540 # body
3542 name = None # in case body contains "del name"
3552 /* second # body */
3553 VISIT_SEQ(c, stmt, handler->v.ExceptHandler.body);
3588 VISIT_SEQ(c, stmt, handler->v.ExceptHandler.body);
3634 [orig, res, rest, i, v] R1: LIST_APPEND 3 ) exc raised in except* body - add to res
3663 basicblock *body = compiler_new_block(c);
3664 if (body == NULL) {
3689 compiler_use_next_block(c, body);
3690 if (!compiler_push_fblock(c, TRY_EXCEPT, body, NULL, NULL)) {
3693 VISIT_SEQ(c, stmt, s->v.TryStar.body);
3694 compiler_pop_fblock(c, TRY_EXCEPT, body);
3766 # body
3769 # body
3771 name = None # in case body contains "del name"
3780 /* second # body */
3781 VISIT_SEQ(c, stmt, handler->v.ExceptHandler.body);
5692 VISIT_SEQ(c, stmt, s->v.AsyncWith.body)
5698 /* End of body; start the cleanup */
5789 VISIT_SEQ(c, stmt, s->v.With.body)
5799 /* End of body; start the cleanup. */
7068 VISIT_SEQ(c, stmt, m->body);
7073 // of the body
7093 VISIT_SEQ(c, stmt, m->body);