Home
last modified time | relevance | path

Searched refs:comp_for (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython3/Lib/lib2to3/
DGrammar.txt114 listmaker: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] )
115 testlist_gexp: (test|star_expr) ( comp_for | (',' (test|star_expr))* [','] )
124 (comp_for | (',' (test ':' test | '**' expr))* [','])) |
126 (comp_for | (',' (test | star_expr))* [','])) )
137 # multiple (test comp_for) arguments are blocked; keyword unpackings
139 argument: ( test [comp_for] |
144 comp_iter: comp_for | comp_if
145 comp_for: [ASYNC] 'for' exprlist 'in' testlist_safe [comp_iter]
Dfixer_util.py105 inner = Node(syms.listmaker, [xp, Node(syms.comp_for, inner_args)])
/external/python/cpython2/Lib/lib2to3/
DGrammar.txt130 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]
Dfixer_util.py107 inner = Node(syms.listmaker, [xp, Node(syms.comp_for, inner_args)])
/external/python/cpython3/Grammar/
DGrammar111 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
143 comp_for: ['async'] sync_comp_for
/external/python/cpython2/Grammar/
DGrammar109 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/cpython3/Include/
Dgraminit.h85 #define comp_for 338 macro
/external/python/cpython2/Include/
Dgraminit.h83 #define comp_for 336 macro
/external/python/cpython2/Lib/
Dsymbol.py93 comp_for = 336 variable
/external/python/cpython3/Lib/
Dsymbol.py95 comp_for = 338 variable
/external/yapf/yapf/yapflib/
Dsubtype_assigner.py70 comp_for = False
75 comp_for = True
81 if not comp_for and dict_maker:
/external/python/cpython2/Python/
Dast.c1171 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/
Dtransformer.py587 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/
Dast.c1755 REQ(n, comp_for); in count_comp_fors()
1776 if (TYPE(n) == comp_for) in count_comp_fors()
1806 if (TYPE(CHILD(n, 0)) == comp_for) in count_comp_ifs()
1839 REQ(n, comp_for); in ast_for_comprehension()
2161 if ((NCH(ch) > 1) && (TYPE(CHILD(ch, 1)) == comp_for)) in ast_for_atom()
2201 TYPE(CHILD(ch, 1)) == comp_for) { in ast_for_atom()
2206 TYPE(CHILD(ch, 3 - is_dict)) == comp_for) { in ast_for_atom()
2720 else if (TYPE(CHILD(ch, 1)) == comp_for) { in ast_for_call()
2805 else if (TYPE(CHILD(ch, 1)) == comp_for) { in ast_for_call()
2871 assert(TYPE(CHILD(n, 1)) != comp_for); in ast_for_testlist()
/external/python/cpython2/Modules/
Dparsermodule.c1012 VALIDATER(testlist1); VALIDATER(comp_for);
1423 if (res && TYPE(CHILD(tree, 0)) == comp_for) in validate_comp_iter()
2635 if (nch == 2 && TYPE(CHILD(tree, 1)) == comp_for) in validate_testlist_comp()
2825 if (NCH(ch) == 2 && TYPE(CHILD(ch, 1)) == comp_for) { in validate_arglist()
3072 else if (ok && TYPE(CHILD(tree, 1)) == comp_for) { in validate_dictorsetmaker()
3079 else if (ok && NCH(tree) > 3 && TYPE(CHILD(tree, 3)) == comp_for) { in validate_dictorsetmaker()
/external/python/cpython2/Doc/reference/
Dexpressions.rst224 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/
Dexpressions.rst182 comprehension: `expression` `comp_for`
183 comp_for: ["async"] "for" `target_list` "in" `or_test` [`comp_iter`]
184 comp_iter: `comp_for` | `comp_if`
305 dict_comprehension: `expression` ":" `expression` `comp_for`
355 generator_expression: "(" `expression` `comp_for` ")"
/external/yapf/
DREADME.rst496 Split before a dictionary or set generator (comp_for). For example, note
DCHANGELOG502 whether the "comp_for" or "comp_if" goes over the column limit.