Lines Matching refs:NCH

724             for (i = 0; i < NCH(n); i++) {  in num_stmts()
735 return NCH(n) / 2; /* Divide by 2 to remove count of semi-colons */ in num_stmts()
740 if (NCH(n) == 1) in num_stmts()
747 for (; i < (NCH(n) - 1); i++) in num_stmts()
753 TYPE(n), NCH(n)); in num_stmts()
792 for (i = 0; i < NCH(n) - 1; i++) { in PyAST_FromNodeObject()
817 ch = CHILD(n, NCH(n) - 1); in PyAST_FromNodeObject()
819 num = NCH(ch); in PyAST_FromNodeObject()
873 for (i = 0; i < NCH(n); i += 2) { in PyAST_FromNodeObject()
895 for (i = 0; i < NCH(ch); i++) { in PyAST_FromNodeObject()
906 for (i = 0; i < NCH(ch); i++) { in PyAST_FromNodeObject()
921 ret = ast_for_expr(&c, CHILD(n, NCH(n) - 1)); in PyAST_FromNodeObject()
1228 if (NCH(n) == 1) { in ast_for_comp_op()
1255 else if (NCH(n) == 2) { in ast_for_comp_op()
1271 NCH(n)); in ast_for_comp_op()
1286 seq = _Py_asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in seq_for_testlist()
1290 for (i = 0; i < NCH(n); i += 2) { in seq_for_testlist()
1320 if (NCH(n) == 3 && TYPE(CHILD(n, 1)) == COLON) { in ast_for_arg()
1355 while (i < NCH(n)) { in handle_keywordonly_args()
1360 if (i + 1 < NCH(n) && TYPE(CHILD(n, i + 1)) == EQUAL) { in handle_keywordonly_args()
1370 if (NCH(ch) == 3) { in handle_keywordonly_args()
1392 if (i < NCH(n) && TYPE(CHILD(n, i)) == COMMA) in handle_keywordonly_args()
1488 if (NCH(n) == 2) /* () as argument list */ in ast_for_arguments()
1498 for (i = 0; i < NCH(n); i++) { in ast_for_arguments()
1503 if (i < NCH(n) && /* skip argument following star */ in ast_for_arguments()
1520 for ( ; i < NCH(n); ++i) { in ast_for_arguments()
1555 while (i < NCH(n)) { in ast_for_arguments()
1563 if (i + 1 < NCH(n) && TYPE(CHILD(n, i + 1)) == EQUAL) { in ast_for_arguments()
1586 if (i < NCH(n) && TYPE(CHILD(n, i)) == COMMA) in ast_for_arguments()
1598 if (i+1 >= NCH(n) || in ast_for_arguments()
1599 (i+2 == NCH(n) && (TYPE(CHILD(n, i+1)) == COMMA in ast_for_arguments()
1610 if (i < NCH(n) && TYPE(CHILD(n, i)) == TYPE_COMMENT) { in ast_for_arguments()
1627 if (i < NCH(n) && TYPE(CHILD(n, i)) == COMMA) in ast_for_arguments()
1630 if (i < NCH(n) && TYPE(CHILD(n, i)) == TYPE_COMMENT) { in ast_for_arguments()
1637 if (i < NCH(n) && (TYPE(CHILD(n, i)) == tfpdef in ast_for_arguments()
1654 if (i < NCH(n) && TYPE(CHILD(n, i)) == COMMA) in ast_for_arguments()
1699 decorator_seq = _Py_asdl_seq_new(NCH(n), c->c_arena); in ast_for_decorators()
1703 for (i = 0; i < NCH(n); i++) { in ast_for_decorators()
1760 if (NCH(CHILD(n, name_i + 3)) > 1) { in ast_for_funcdef_impl()
1901 if (NCH(n) == 3) { in ast_for_lambdef()
1928 assert(NCH(n) == 5); in ast_for_ifexpr()
1957 if (NCH(n) == 2) { in count_comp_fors()
1961 else if (NCH(n) == 1) { in count_comp_fors()
1967 if (NCH(n) == (5)) { in count_comp_fors()
1979 if (NCH(n) == 3) { in count_comp_fors()
2011 if (NCH(n) == 2) in count_comp_ifs()
2041 if (NCH(n) == 2) { in ast_for_comprehension()
2069 if (NCH(for_ch) == 1) in ast_for_comprehension()
2080 if (NCH(sync_n) == 5) { in ast_for_comprehension()
2102 if (NCH(n) == 3) in ast_for_comprehension()
2124 assert(NCH(n) > 1); in ast_for_itercomp()
2163 assert(NCH(n) - *i >= 2); in ast_for_dictelement()
2174 assert(NCH(n) - *i >= 3); in ast_for_dictelement()
2203 assert(NCH(n) - i >= 1); in ast_for_dictcomp()
2221 size = (NCH(n) + 1) / 3; /* +1 in case no trailing comma */ in ast_for_dictdisplay()
2231 for (i = 0; i < NCH(n); i++) { in ast_for_dictdisplay()
2276 size = (NCH(n) + 1) / 2; /* +1 in case no trailing comma */ in ast_for_setdisplay()
2280 for (i = 0; i < NCH(n); i += 2) { in ast_for_setdisplay()
2385 if (NCH(ch) == 1) { in ast_for_atom()
2403 if (NCH(ch) == 1 || TYPE(CHILD(ch, 1)) == COMMA) { in ast_for_atom()
2428 if (NCH(ch) == 1 || in ast_for_atom()
2429 (NCH(ch) > 1 && in ast_for_atom()
2434 else if (NCH(ch) > 1 && in ast_for_atom()
2439 else if (NCH(ch) > 3 - is_dict && in ast_for_atom()
2475 if (NCH(n) == 1 && TYPE(ch) == test) { in ast_for_slice()
2487 if (NCH(n) > 1) { in ast_for_slice()
2496 } else if (NCH(n) > 2) { in ast_for_slice()
2506 ch = CHILD(n, NCH(n) - 1); in ast_for_slice()
2508 if (NCH(ch) != 1) { in ast_for_slice()
2552 nops = (NCH(n) - 1) / 2; in ast_for_binop()
2587 if (NCH(n) == 2) in ast_for_trailer()
2606 if (NCH(n) == 1) { in ast_for_trailer()
2618 elts = _Py_asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_trailer()
2621 for (j = 0; j < NCH(n); j += 2) { in ast_for_trailer()
2675 nch = NCH(n); in ast_for_atom_expr()
2726 if (NCH(n) == 1) in ast_for_power()
2728 if (TYPE(CHILD(n, NCH(n) - 1)) == factor) { in ast_for_power()
2729 expr_ty f = ast_for_expr(c, CHILD(n, NCH(n) - 1)); in ast_for_power()
2786 if (NCH(n) == 3) in ast_for_expr()
2794 else if (NCH(n) > 1) in ast_for_expr()
2799 if (NCH(n) == 1) { in ast_for_expr()
2803 seq = _Py_asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_expr()
2806 for (i = 0; i < NCH(n); i += 2) { in ast_for_expr()
2820 if (NCH(n) == 1) { in ast_for_expr()
2834 if (NCH(n) == 1) { in ast_for_expr()
2842 ops = _Py_asdl_int_seq_new(NCH(n) / 2, c->c_arena); in ast_for_expr()
2845 cmps = _Py_asdl_seq_new(NCH(n) / 2, c->c_arena); in ast_for_expr()
2849 for (i = 1; i < NCH(n); i += 2) { in ast_for_expr()
2886 if (NCH(n) == 1) { in ast_for_expr()
2896 if (NCH(n) > 1) in ast_for_expr()
2899 en = CHILD(an, NCH(an) - 1); in ast_for_expr()
2900 if (NCH(an) == 2) { in ast_for_expr()
2916 if (NCH(n) == 1) { in ast_for_expr()
2949 for (i = 0; i < NCH(n); i++) { in ast_for_call()
2952 if (NCH(ch) == 1) in ast_for_call()
2960 if (NCH(n) > 1) { in ast_for_call()
2986 for (i = 0; i < NCH(n); i++) { in ast_for_call()
2991 if (NCH(ch) == 1) { in ast_for_call()
3101 if (NCH(expr_node) != 1) in ast_for_call()
3140 assert(NCH(n) > 0); in ast_for_testlist()
3142 if (NCH(n) > 1) in ast_for_testlist()
3149 if (NCH(n) == 1) in ast_for_testlist()
3172 int num = NCH(n); in ast_for_expr_stmt()
3239 while (NCH(deep) == 1) { in ast_for_expr_stmt()
3242 if (NCH(deep) > 0 && TYPE(CHILD(deep, 0)) == LPAR) { in ast_for_expr_stmt()
3287 if (NCH(ann) == 2) { in ast_for_expr_stmt()
3370 seq = _Py_asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_exprlist()
3373 for (i = 0; i < NCH(n); i += 2) { in ast_for_exprlist()
3431 if (NCH(ch) == 1) in ast_for_flow_stmt()
3442 if (NCH(ch) == 1) in ast_for_flow_stmt()
3445 else if (NCH(ch) >= 2) { in ast_for_flow_stmt()
3450 if (NCH(ch) == 4) { in ast_for_flow_stmt()
3484 if (NCH(n) == 3) { in alias_for_import_name()
3499 if (NCH(n) == 1) { in alias_for_import_name()
3517 if (NCH(n) == 1) { in alias_for_import_name()
3534 for (i = 0; i < NCH(n); i += 2) in alias_for_import_name()
3544 for (i = 0; i < NCH(n); i += 2) { in alias_for_import_name()
3603 aliases = _Py_asdl_seq_new((NCH(n) + 1) / 2, c->c_arena); in ast_for_import_stmt()
3606 for (i = 0; i < NCH(n); i += 2) { in ast_for_import_stmt()
3625 for (idx = 1; idx < NCH(n); idx++) { in ast_for_import_stmt()
3651 n_children = NCH(n); in ast_for_import_stmt()
3656 n_children = NCH(n); in ast_for_import_stmt()
3681 for (i = 0; i < NCH(n); i += 2) { in ast_for_import_stmt()
3709 s = _Py_asdl_seq_new(NCH(n) / 2, c->c_arena); in ast_for_global_stmt()
3712 for (i = 1; i < NCH(n); i += 2) { in ast_for_global_stmt()
3731 s = _Py_asdl_seq_new(NCH(n) / 2, c->c_arena); in ast_for_nonlocal_stmt()
3734 for (i = 1; i < NCH(n); i += 2) { in ast_for_nonlocal_stmt()
3749 if (NCH(n) == 2) { in ast_for_assert_stmt()
3756 else if (NCH(n) == 4) { in ast_for_assert_stmt()
3771 NCH(n)); in ast_for_assert_stmt()
3797 end = NCH(n) - 1; in ast_for_suite()
3816 for (; i < (NCH(n) - 1); i++) { in ast_for_suite()
3831 for (j = 0; j < NCH(ch); j += 2) { in ast_for_suite()
3833 if (NCH(CHILD(ch, j)) == 0) { in ast_for_suite()
3834 assert((j + 1) == NCH(ch)); in ast_for_suite()
3871 if (NCH(n) == 4) { in ast_for_if_stmt()
3915 n_elif = NCH(n) - 4; in ast_for_if_stmt()
3931 expression = ast_for_expr(c, CHILD(n, NCH(n) - 6)); in ast_for_if_stmt()
3934 suite_seq = ast_for_suite(c, CHILD(n, NCH(n) - 4)); in ast_for_if_stmt()
3937 suite_seq2 = ast_for_suite(c, CHILD(n, NCH(n) - 1)); in ast_for_if_stmt()
3944 LINENO(CHILD(n, NCH(n) - 7)), in ast_for_if_stmt()
3945 CHILD(n, NCH(n) - 7)->n_col_offset, in ast_for_if_stmt()
3999 if (NCH(n) == 4) { in ast_for_while_stmt()
4013 else if (NCH(n) == 7) { in ast_for_while_stmt()
4034 NCH(n)); in ast_for_while_stmt()
4061 if (NCH(n) == 9 + has_type_comment) { in ast_for_for_stmt()
4074 if (NCH(node_target) == 1) in ast_for_for_stmt()
4120 if (NCH(exc) == 1) { in ast_for_except_clause()
4130 else if (NCH(exc) == 2) { in ast_for_except_clause()
4146 else if (NCH(exc) == 4) { in ast_for_except_clause()
4169 NCH(exc)); in ast_for_except_clause()
4176 const int nch = NCH(n); in ast_for_try_stmt()
4261 if (NCH(n) == 3) { in ast_for_with_item()
4292 has_type_comment = TYPE(CHILD(n, NCH(n) - 2)) == TYPE_COMMENT; in ast_for_with_stmt()
4293 nch_minus_type = NCH(n) - has_type_comment; in ast_for_with_stmt()
4306 body = ast_for_suite(c, CHILD(n, NCH(n) - 1)); in ast_for_with_stmt()
4312 type_comment = NEW_TYPE_COMMENT(CHILD(n, NCH(n) - 2)); in ast_for_with_stmt()
4338 if (NCH(n) == 4) { /* class NAME ':' suite */ in ast_for_classdef()
4406 assert(NCH(n) == 1); in ast_for_stmt()
4439 TYPE(n), NCH(n)); in ast_for_stmt()
4471 TYPE(n), NCH(n)); in ast_for_stmt()
4683 for (int i = 0; i < NCH(n); ++i) { in fstring_shift_node_locations()
5422 if (NCH(n) == 0) in make_kind()
5771 for (i = 0; i < NCH(n); i++) { in parsestrplus()