Home
last modified time | relevance | path

Searched refs:Starred (Results 1 - 9 of 9) sorted by relevance

/third_party/python/Parser/
H A Daction_helpers.c351 return _PyAST_Starred(_PyPegen_set_expr_context(p, e->v.Starred.value, ctx), in _set_starred_context()
1226 return _PyPegen_get_invalid_target(e->v.Starred.value, targets_type); in _PyPegen_get_invalid_target()
/third_party/python/Python/
H A Dast.c231 actual_ctx = exp->v.Starred.ctx; in validate_expr()
368 ret = validate_expr(state, exp->v.Starred.value, ctx); in validate_expr()
H A Dast_unparse.c798 APPEND_EXPR(e->v.Starred.value, PR_EXPR); in append_ast_starred()
H A Dast_opt.c793 CALL(astfold_expr, expr_ty, node_->v.Starred.value); in astfold_expr()
H A Dcompile.c2438 VISIT(c, expr, annotation->v.Starred.value); in compiler_visit_argannotation()
4445 VISIT(c, expr, elt->v.Starred.value); in starunpack_helper()
4496 VISIT(c, expr, elt->kind != Starred_kind ? elt : elt->v.Starred.value); in assignment_helper()
5150 VISIT(c, expr, ((expr_ty)asdl_seq_GET(args, 0))->v.Starred.value); in compiler_call_helper()
5933 switch (e->v.Starred.ctx) { in compiler_visit_expr1()
5935 /* In all legitimate cases, the Starred node was already replaced in compiler_visit_expr1()
H A Dsymtable.c1701 VISIT(st, expr, e->v.Starred.value); in symtable_visit_expr()
H A DPython-ast.c1333 " | Starred(expr value, expr_context ctx)\n" in init_types()
1441 state->Starred_type = make_type(state, "Starred", state->expr_type, in init_types()
1443 "Starred(expr value, expr_context ctx)"); in init_types()
3145 "field 'value' is required for Starred"); in _PyAST_Starred()
3150 "field 'ctx' is required for Starred"); in _PyAST_Starred()
3157 p->v.Starred.value = value; in _PyAST_Starred()
3158 p->v.Starred.ctx = ctx; in _PyAST_Starred()
4626 value = ast2obj_expr(state, o->v.Starred.value); in ast2obj_expr()
4631 value = ast2obj_expr_context(state, o->v.Starred.ctx); in ast2obj_expr()
9610 PyErr_SetString(PyExc_TypeError, "required field \"value\" missing from Starred"); in obj2ast_expr()
[all...]
/third_party/python/Include/internal/
H A Dpycore_ast.h466 } Starred; member
/third_party/python/Lib/test/
H A Dtest_ast.py1658 left = ast.List([ast.Starred(ast.Name("x", ast.Load()), ast.Store())],
1751 [constant_true, ast.Starred(ast.Name('lol', ast.Load()), ast.Load())],
2474 ('Module', [('FunctionDef', (1, 0, 1, 23), 'f', ('arguments', [], [], ('arg', (1, 7, 1, 16), 'args', ('Starred', (1, 13, 1, 16), ('Name', (1, 14, 1, 16), 'Ts', ('Load',)), ('Load',)), None), [], [], None, []), [('Pass', (1, 19, 1, 23))], [], None, None)], []),
2475 ('Module', [('FunctionDef', (1, 0, 1, 36), 'f', ('arguments', [], [], ('arg', (1, 7, 1, 29), 'args', ('Starred', (1, 13, 1, 29), ('Subscript', (1, 14, 1, 29), ('Name', (1, 14, 1, 19), 'tuple', ('Load',)), ('Tuple', (1, 20, 1, 28), [('Name', (1, 20, 1, 23), 'int', ('Load',)), ('Constant', (1, 25, 1, 28), Ellipsis, None)], ('Load',)), ('Load',)), ('Load',)), None), [], [], None, []), [('Pass', (1, 32, 1, 36))], [], None, None)], []),
2476 ('Module', [('FunctionDef', (1, 0, 1, 36), 'f', ('arguments', [], [], ('arg', (1, 7, 1, 29), 'args', ('Starred', (1, 13, 1, 29), ('Subscript', (1, 14, 1, 29), ('Name', (1, 14, 1, 19), 'tuple', ('Load',)), ('Tuple', (1, 20, 1, 28), [('Name', (1, 20, 1, 23), 'int', ('Load',)), ('Starred', (1, 25, 1, 28), ('Name', (1, 26, 1, 28), 'Ts', ('Load',)), ('Load',))], ('Load',)), ('Load',)), ('Load',)), None), [], [], None, []), [('Pass', (1, 32, 1, 36))], [], None, None)], []),
2479 ('Module', [('FunctionDef', (1, 0, 1, 27), 'f', ('arguments', [], [], None, [], [], None, []), [('Pass', (1, 23, 1, 27))], [], ('Subscript', (1, 11, 1, 21), ('Name', (1, 11, 1, 16), 'tuple', ('Load',)), ('Tuple', (1, 17, 1, 20), [('Starred', (1, 17, 1, 20), ('Name', (1, 18, 1, 20), 'Ts', ('Load',)), ('Load',))], ('Load',)), ('Load',)), None)], []),
2480 ('Module', [('FunctionDef', (1, 0, 1, 32), 'f', ('arguments', [], [], None, [], [], None, []), [('Pass', (1, 28, 1, 32))], [], ('Subscript', (1, 11, 1, 26), ('Name', (1, 11, 1, 16), 'tuple', ('Load',)), ('Tuple', (1, 17, 1, 25), [('Name', (1, 17, 1, 20), 'int', ('Load',)), ('Starred', (1, 22, 1, 25), ('Name', (1, 23, 1, 25), 'Ts', ('Load',)), ('Load',))], ('Load',)), ('Load',)), None)], []),
2481 ('Module', [('FunctionDef', (1, 0, 1, 45), 'f', ('arguments', [], [], None, [], [], None, []), [('Pass', (1, 41, 1, 45))], [], ('Subscript', (1, 11, 1, 39), ('Name', (1, 11, 1, 16), 'tuple', ('Load',)), ('Tuple', (1, 17, 1, 38), [('Name', (1, 17, 1, 20), 'int', ('Load',)), ('Starred', (1, 22, 1, 38), ('Subscript', (1, 23, 1, 38), ('Name', (1, 23, 1, 28), 'tuple', ('Load',)), ('Tuple', (1, 29, 1, 37), [('Name', (1, 29, 1, 32), 'int', ('Load',)), ('Constant', (1, 34, 1, 37), Ellipsis, None)], ('Load',)), ('Load',)), ('Load',))], ('Load',)), ('Load',)), None)], []),
2491 ('Module', [('AnnAssign', (1, 0, 1, 13), ('Name', (1, 0, 1, 1), 'x', ('Store',)), ('Subscript', (1, 3, 1, 13), ('Name', (1, 3, 1, 8), 'tuple', ('Load',)), ('Tuple', (1, 9, 1, 12), [('Starred', (
[all...]

Completed in 41 milliseconds