/external/python/cpython2/Lib/lib2to3/ |
D | Grammar.txt | 130 listmaker: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] ) 131 testlist_gexp: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] ) 140 (comp_for | (',' (test ':' test | '**' expr))* [','])) | 142 (comp_for | (',' (test | star_expr))* [','])) ) 153 # multiple (test comp_for) arguments are blocked; keyword unpackings 155 argument: ( test [comp_for] | 160 comp_iter: comp_for | comp_if 161 comp_for: 'for' exprlist 'in' testlist_safe [comp_iter]
|
D | fixer_util.py | 107 inner = Node(syms.listmaker, [xp, Node(syms.comp_for, inner_args)])
|
/external/python/cpython3/Grammar/ |
D | Grammar | 111 testlist_comp: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] ) 119 (comp_for | (',' (test ':' test | '**' expr))* [','])) | 121 (comp_for | (',' (test | star_expr))* [','])) ) 134 # multiple (test comp_for) arguments are blocked; keyword unpackings 136 argument: ( test [comp_for] | 141 comp_iter: comp_for | comp_if 142 comp_for: [ASYNC] 'for' exprlist 'in' or_test [comp_iter]
|
/external/python/cpython3/Lib/lib2to3/ |
D | Grammar.txt | 133 listmaker: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] ) 134 testlist_gexp: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] ) 143 (comp_for | (',' (test ':' test | '**' expr))* [','])) | 145 (comp_for | (',' (test | star_expr))* [','])) ) 156 # multiple (test comp_for) arguments are blocked; keyword unpackings 158 argument: ( test [comp_for] | 163 comp_iter: comp_for | comp_if 164 comp_for: [ASYNC] 'for' exprlist 'in' testlist_safe [comp_iter]
|
D | fixer_util.py | 105 inner = Node(syms.listmaker, [xp, Node(syms.comp_for, inner_args)])
|
/external/python/cpython2/Grammar/ |
D | Grammar | 109 testlist_comp: test ( comp_for | (',' test)* [','] ) 117 dictorsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) | 118 (test (comp_for | (',' test)* [','])) ) 127 argument: test [comp_for] | test '=' test 133 comp_iter: comp_for | comp_if 134 comp_for: 'for' exprlist 'in' or_test [comp_iter]
|
/external/python/cpython2/Include/ |
D | graminit.h | 83 #define comp_for 336 macro
|
/external/python/cpython3/Include/ |
D | graminit.h | 84 #define comp_for 337 macro
|
/external/python/cpython2/Lib/ |
D | symbol.py | 93 comp_for = 336 variable
|
/external/python/cpython3/Lib/ |
D | symbol.py | 94 comp_for = 337 variable
|
/external/python/cpython2/Python/ |
D | ast.c | 1171 REQ(n, comp_for); in count_comp_fors() 1179 if (TYPE(n) == comp_for) in count_comp_fors() 1208 if (TYPE(CHILD(n, 0)) == comp_for) in count_comp_ifs() 1239 REQ(n, comp_for); in ast_for_comprehension() 1465 } else if (TYPE(CHILD(ch, 1)) == comp_for) { in ast_for_atom() 1468 } else if (NCH(ch) > 3 && TYPE(CHILD(ch, 3)) == comp_for) { in ast_for_atom() 2001 else if (TYPE(CHILD(ch, 1)) == comp_for) in ast_for_call() 2046 else if (TYPE(CHILD(ch, 1)) == comp_for) { in ast_for_call() 2123 assert(TYPE(CHILD(n, 1)) != comp_for); in ast_for_testlist() 2146 if (NCH(n) > 1 && TYPE(CHILD(n, 1)) == comp_for) in ast_for_testlist_comp()
|
/external/python/cpython2/Lib/compiler/ |
D | transformer.py | 587 if len(nodelist) == 2 and nodelist[1][0] == symbol.comp_for: 1222 elif nodelist[1][0] == symbol.comp_for: 1226 elif len(nodelist) > 3 and nodelist[3][0] == symbol.comp_for: 1284 and len(node) == 3 and node[2][0] == symbol.comp_for: 1296 if len(nodelist) == 3 and nodelist[2][0] == symbol.comp_for:
|
/external/python/cpython3/Python/ |
D | ast.c | 1777 REQ(n, comp_for); in count_comp_fors() 1790 if (TYPE(n) == comp_for) in count_comp_fors() 1819 if (TYPE(CHILD(n, 0)) == comp_for) in count_comp_ifs() 1851 REQ(n, comp_for); in ast_for_comprehension() 2166 if ((NCH(ch) > 1) && (TYPE(CHILD(ch, 1)) == comp_for)) in ast_for_atom() 2206 TYPE(CHILD(ch, 1)) == comp_for) { in ast_for_atom() 2211 TYPE(CHILD(ch, 3 - is_dict)) == comp_for) { in ast_for_atom() 2726 else if (TYPE(CHILD(ch, 1)) == comp_for) in ast_for_call() 2812 else if (TYPE(CHILD(ch, 1)) == comp_for) { in ast_for_call() 2878 assert(TYPE(CHILD(n, 1)) != comp_for); in ast_for_testlist()
|
/external/python/cpython2/Modules/ |
D | parsermodule.c | 970 VALIDATER(testlist1); VALIDATER(comp_for); 1381 if (res && TYPE(CHILD(tree, 0)) == comp_for) in validate_comp_iter() 2593 if (nch == 2 && TYPE(CHILD(tree, 1)) == comp_for) in validate_testlist_comp() 2783 if (NCH(ch) == 2 && TYPE(CHILD(ch, 1)) == comp_for) { in validate_arglist() 3030 else if (ok && TYPE(CHILD(tree, 1)) == comp_for) { in validate_dictorsetmaker() 3037 else if (ok && NCH(tree) > 3 && TYPE(CHILD(tree, 3)) == comp_for) { in validate_dictorsetmaker()
|
/external/python/cpython2/Doc/reference/ |
D | expressions.rst | 224 comprehension: `expression` `comp_for` 225 comp_for: "for" `target_list` "in" `or_test` [`comp_iter`] 226 comp_iter: `comp_for` | `comp_if` 251 generator_expression: "(" `expression` `comp_for` ")" 285 dict_comprehension: `expression` ":" `expression` `comp_for`
|
/external/python/cpython3/Doc/reference/ |
D | expressions.rst | 174 comprehension: `expression` `comp_for` 175 comp_for: [ASYNC] "for" `target_list` "in" `or_test` [`comp_iter`] 176 comp_iter: `comp_for` | `comp_if` 265 dict_comprehension: `expression` ":" `expression` `comp_for` 311 generator_expression: "(" `expression` `comp_for` ")"
|