Lines Matching defs:cases
15 * (mod_ty) has cases for expressions and interactive statements.
908 The line number is reset in the following cases:
1909 for (j = 0; j < asdl_seq_LEN(st->v.Match.cases); j++) {
1911 st->v.Match.cases, j);
3918 string. This is convenient for all cases except
5935 /* In all legitimate cases, the Starred node was already replaced
6262 /* only handles the cases where BUILD_SLICE is emitted */
6819 // cases, though, and the peephole optimizer will ensure
7026 Py_ssize_t cases = asdl_seq_LEN(s->v.Match.cases);
7027 assert(cases > 0);
7028 match_case_ty m = asdl_seq_GET(s->v.Match.cases, cases - 1);
7029 int has_default = WILDCARD_CHECK(m->pattern) && 1 < cases;
7030 for (Py_ssize_t i = 0; i < cases - has_default; i++) {
7031 m = asdl_seq_GET(s->v.Match.cases, i);
7034 if (i != cases - has_default - 1) {
7038 // Irrefutable cases must be either guarded, last, or both:
7039 pc->allow_irrefutable = m->guard != NULL || i == cases - 1;
7065 if (i != cases - has_default - 1) {
7080 m = asdl_seq_GET(s->v.Match.cases, cases - 1);
7082 if (cases == 1) {