Lines Matching refs:expr_ty
9 make_const(expr_ty node, PyObject *val, PyArena *arena) in make_const()
42 fold_unaryop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_unaryop()
44 expr_ty arg = node->v.UnaryOp.operand; in fold_unaryop()
228 fold_binop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_binop()
230 expr_ty lhs, rhs; in fold_binop()
292 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple()
304 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple()
313 fold_tuple(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_tuple()
325 fold_subscr(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_subscr()
328 expr_ty arg, idx; in fold_subscr()
350 fold_iter(expr_ty arg, PyArena *arena, _PyASTOptimizeState *state) in fold_iter()
358 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in fold_iter()
383 fold_compare(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_compare()
397 if (!fold_iter((expr_ty)asdl_seq_GET(args, i), arena, state)) { in fold_compare()
406 static int astfold_expr(expr_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
456 expr_ty expr = _PyAST_JoinedStr(values, st->lineno, st->col_offset, in astfold_body()
478 CALL(astfold_expr, expr_ty, node_->v.Expression.body); in astfold_mod()
490 astfold_expr(expr_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_expr()
502 CALL(astfold_expr, expr_ty, node_->v.BinOp.left); in astfold_expr()
503 CALL(astfold_expr, expr_ty, node_->v.BinOp.right); in astfold_expr()
504 CALL(fold_binop, expr_ty, node_); in astfold_expr()
507 CALL(astfold_expr, expr_ty, node_->v.UnaryOp.operand); in astfold_expr()
508 CALL(fold_unaryop, expr_ty, node_); in astfold_expr()
512 CALL(astfold_expr, expr_ty, node_->v.Lambda.body); in astfold_expr()
515 CALL(astfold_expr, expr_ty, node_->v.IfExp.test); in astfold_expr()
516 CALL(astfold_expr, expr_ty, node_->v.IfExp.body); in astfold_expr()
517 CALL(astfold_expr, expr_ty, node_->v.IfExp.orelse); in astfold_expr()
527 CALL(astfold_expr, expr_ty, node_->v.ListComp.elt); in astfold_expr()
531 CALL(astfold_expr, expr_ty, node_->v.SetComp.elt); in astfold_expr()
535 CALL(astfold_expr, expr_ty, node_->v.DictComp.key); in astfold_expr()
536 CALL(astfold_expr, expr_ty, node_->v.DictComp.value); in astfold_expr()
540 CALL(astfold_expr, expr_ty, node_->v.GeneratorExp.elt); in astfold_expr()
544 CALL(astfold_expr, expr_ty, node_->v.Await.value); in astfold_expr()
547 CALL_OPT(astfold_expr, expr_ty, node_->v.Yield.value); in astfold_expr()
550 CALL(astfold_expr, expr_ty, node_->v.YieldFrom.value); in astfold_expr()
553 CALL(astfold_expr, expr_ty, node_->v.Compare.left); in astfold_expr()
555 CALL(fold_compare, expr_ty, node_); in astfold_expr()
558 CALL(astfold_expr, expr_ty, node_->v.Call.func); in astfold_expr()
563 CALL(astfold_expr, expr_ty, node_->v.FormattedValue.value); in astfold_expr()
564 CALL_OPT(astfold_expr, expr_ty, node_->v.FormattedValue.format_spec); in astfold_expr()
570 CALL(astfold_expr, expr_ty, node_->v.Attribute.value); in astfold_expr()
573 CALL(astfold_expr, expr_ty, node_->v.Subscript.value); in astfold_expr()
574 CALL(astfold_expr, expr_ty, node_->v.Subscript.slice); in astfold_expr()
575 CALL(fold_subscr, expr_ty, node_); in astfold_expr()
578 CALL(astfold_expr, expr_ty, node_->v.Starred.value); in astfold_expr()
581 CALL_OPT(astfold_expr, expr_ty, node_->v.Slice.lower); in astfold_expr()
582 CALL_OPT(astfold_expr, expr_ty, node_->v.Slice.upper); in astfold_expr()
583 CALL_OPT(astfold_expr, expr_ty, node_->v.Slice.step); in astfold_expr()
590 CALL(fold_tuple, expr_ty, node_); in astfold_expr()
600 CALL(astfold_expr, expr_ty, node_->v.NamedExpr.value); in astfold_expr()
615 CALL(astfold_expr, expr_ty, node_->value); in astfold_keyword()
622 CALL(astfold_expr, expr_ty, node_->target); in astfold_comprehension()
623 CALL(astfold_expr, expr_ty, node_->iter); in astfold_comprehension()
626 CALL(fold_iter, expr_ty, node_->iter); in astfold_comprehension()
647 CALL_OPT(astfold_expr, expr_ty, node_->annotation); in astfold_arg()
666 CALL_OPT(astfold_expr, expr_ty, node_->v.FunctionDef.returns); in astfold_stmt()
674 CALL_OPT(astfold_expr, expr_ty, node_->v.AsyncFunctionDef.returns); in astfold_stmt()
684 CALL_OPT(astfold_expr, expr_ty, node_->v.Return.value); in astfold_stmt()
691 CALL(astfold_expr, expr_ty, node_->v.Assign.value); in astfold_stmt()
694 CALL(astfold_expr, expr_ty, node_->v.AugAssign.target); in astfold_stmt()
695 CALL(astfold_expr, expr_ty, node_->v.AugAssign.value); in astfold_stmt()
698 CALL(astfold_expr, expr_ty, node_->v.AnnAssign.target); in astfold_stmt()
700 CALL(astfold_expr, expr_ty, node_->v.AnnAssign.annotation); in astfold_stmt()
702 CALL_OPT(astfold_expr, expr_ty, node_->v.AnnAssign.value); in astfold_stmt()
705 CALL(astfold_expr, expr_ty, node_->v.For.target); in astfold_stmt()
706 CALL(astfold_expr, expr_ty, node_->v.For.iter); in astfold_stmt()
710 CALL(fold_iter, expr_ty, node_->v.For.iter); in astfold_stmt()
713 CALL(astfold_expr, expr_ty, node_->v.AsyncFor.target); in astfold_stmt()
714 CALL(astfold_expr, expr_ty, node_->v.AsyncFor.iter); in astfold_stmt()
719 CALL(astfold_expr, expr_ty, node_->v.While.test); in astfold_stmt()
724 CALL(astfold_expr, expr_ty, node_->v.If.test); in astfold_stmt()
737 CALL_OPT(astfold_expr, expr_ty, node_->v.Raise.exc); in astfold_stmt()
738 CALL_OPT(astfold_expr, expr_ty, node_->v.Raise.cause); in astfold_stmt()
747 CALL(astfold_expr, expr_ty, node_->v.Assert.test); in astfold_stmt()
748 CALL_OPT(astfold_expr, expr_ty, node_->v.Assert.msg); in astfold_stmt()
751 CALL(astfold_expr, expr_ty, node_->v.Expr.value); in astfold_stmt()
754 CALL(astfold_expr, expr_ty, node_->v.Match.subject); in astfold_stmt()
778 CALL_OPT(astfold_expr, expr_ty, node_->v.ExceptHandler.type); in astfold_excepthandler()
790 CALL(astfold_expr, expr_ty, node_->context_expr); in astfold_withitem()
791 CALL_OPT(astfold_expr, expr_ty, node_->optional_vars); in astfold_withitem()
808 CALL(astfold_expr, expr_ty, node_->v.MatchValue.value); in astfold_pattern()
820 CALL(astfold_expr, expr_ty, node_->v.MatchClass.cls); in astfold_pattern()
844 CALL(astfold_pattern, expr_ty, node_->pattern); in astfold_match_case()
845 CALL_OPT(astfold_expr, expr_ty, node_->guard); in astfold_match_case()