Home
last modified time | relevance | path

Searched refs:SetComp (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Python/
H A Dast_unparse.c440 APPEND_EXPR(e->v.SetComp.elt, PR_TEST); in append_ast_setcomp()
441 APPEND(comprehensions, e->v.SetComp.generators); in append_ast_setcomp()
H A Dast_opt.c746 CALL(astfold_expr, expr_ty, node_->v.SetComp.elt); in astfold_expr()
747 CALL_SEQ(astfold_comprehension, comprehension, node_->v.SetComp.generators); in astfold_expr()
H A Dsymtable.c2090 e->v.SetComp.generators, in symtable_visit_setcomp()
2091 e->v.SetComp.elt, NULL); in symtable_visit_setcomp()
H A Dast.c306 COMP(SetComp) in validate_expr()
H A DPython-ast.c1320 " | SetComp(expr elt, comprehension* generators)\n" in init_types()
1380 state->SetComp_type = make_type(state, "SetComp", state->expr_type, in init_types()
1382 "SetComp(expr elt, comprehension* generators)"); in init_types()
2822 "field 'elt' is required for SetComp"); in _PyAST_SetComp()
2829 p->v.SetComp.elt = elt; in _PyAST_SetComp()
2830 p->v.SetComp.generators = generators; in _PyAST_SetComp()
4409 value = ast2obj_expr(state, o->v.SetComp.elt); in ast2obj_expr()
4414 value = ast2obj_list(state, (asdl_seq*)o->v.SetComp.generators, in ast2obj_expr()
8789 PyErr_SetString(PyExc_TypeError, "required field \"elt\" missing from SetComp"); in obj2ast_expr()
8794 if (_Py_EnterRecursiveCall(" while traversing 'SetComp' nod in obj2ast_expr()
[all...]
H A Dcompile.c5577 e->v.SetComp.generators, in compiler_setcomp()
5578 e->v.SetComp.elt, NULL); in compiler_setcomp()
/third_party/python/Include/internal/
H A Dpycore_ast.h399 } SetComp; member
/third_party/python/Lib/test/
H A Dtest_ast.py1576 self._simple_comp(ast.SetComp)
2520 ('Module', [('Expr', (1, 0, 1, 19), ('SetComp', (1, 0, 1, 19), ('Name', (1, 1, 1, 2), 'r', ('Load',)), [('comprehension', ('Name', (1, 7, 1, 8), 'l', ('Store',)), ('Name', (1, 12, 1, 13), 'x', ('Load',)), [('Name', (1, 17, 1, 18), 'g', ('Load',))], 0)]))], []),
2521 ('Module', [('Expr', (1, 0, 1, 16), ('SetComp', (1, 0, 1, 16), ('Name', (1, 1, 1, 2), 'r', ('Load',)), [('comprehension', ('Tuple', (1, 7, 1, 10), [('Name', (1, 7, 1, 8), 'l', ('Store',)), ('Name', (1, 9, 1, 10), 'm', ('Store',))], ('Store',)), ('Name', (1, 14, 1, 15), 'x', ('Load',)), [], 0)]))], []),
2563 ('Expression', ('SetComp', (1, 0, 1, 20), ('Tuple', (1, 1, 1, 6), [('Name', (1, 2, 1, 3), 'a', ('Load',)), ('Name', (1, 4, 1, 5), 'b', ('Load',))], ('Load',)), [('comprehension', ('Tuple', (1, 11, 1, 14), [('Name', (1, 11, 1, 12), 'a', ('Store',)), ('Name', (1, 13, 1, 14), 'b', ('Store',))], ('Store',)), ('Name', (1, 18, 1, 19), 'c', ('Load',)), [], 0)])),
2564 ('Expression', ('SetComp', (1, 0, 1, 22), ('Tuple', (1, 1, 1, 6), [('Name', (1, 2, 1, 3), 'a', ('Load',)), ('Name', (1, 4, 1, 5), 'b', ('Load',))], ('Load',)), [('comprehension', ('Tuple', (1, 11, 1, 16), [('Name', (1, 12, 1, 13), 'a', ('Store',)), ('Name', (1, 14, 1, 15), 'b', ('Store',))], ('Store',)), ('Name', (1, 20, 1, 21), 'c', ('Load',)), [], 0)])),
2565 ('Expression', ('SetComp', (1, 0, 1, 22), ('Tuple', (1, 1, 1, 6), [('Name', (1, 2, 1, 3), 'a', ('Load',)), ('Name', (1, 4, 1, 5), 'b', ('Load',))], ('Load',)), [('comprehension', ('List', (1, 11, 1, 16), [('Name', (1, 12, 1, 13), 'a', ('Store',)), ('Name', (1, 14, 1, 15), 'b', ('Store',))], ('Store',)), ('Name', (1, 20, 1, 21), 'c', ('Load',)), [], 0)])),

Completed in 35 milliseconds