Searched refs:Constant_kind (Results 1 – 8 of 8) sorted by relevance
315 case Constant_kind: in validate_expr()378 assert(exp->kind == Constant_kind); in ensure_literal_number()395 if (operand->kind != Constant_kind) { in ensure_literal_negative()415 case Constant_kind: in ensure_literal_complex()431 case Constant_kind: in ensure_literal_complex()451 case Constant_kind: in validate_pattern_match_value()544 if (key->kind == Constant_kind) { in validate_pattern()985 if (e->kind == Constant_kind && PyUnicode_CheckExact(e->v.Constant.value)) { in _PyAST_GetDocString()
24 node->kind = Constant_kind; in make_const()46 if (arg->kind != Constant_kind) { in fold_unaryop()233 if (lhs->kind != Constant_kind || rhs->kind != Constant_kind) { in fold_binop()293 if (e->kind != Constant_kind) { in make_const_tuple()333 arg->kind != Constant_kind || in fold_subscr()334 idx->kind != Constant_kind) in fold_subscr()602 case Constant_kind: in astfold_expr()
604 case Constant_kind: in append_fstring_element()754 if (v->kind == Constant_kind && PyLong_CheckExact(v->v.Constant.value)) { in append_ast_attribute()890 case Constant_kind: in append_ast_expr()
2564 if (e->kind != Constant_kind) { in check_is_arg()2988 (s->v.Return.value->kind != Constant_kind)); in compiler_return()3450 (s->v.Assert.test->kind == Constant_kind && in compiler_assert()3486 if (value->kind == Constant_kind) { in compiler_visit_stmt_expr()3970 if (key == NULL || key->kind != Constant_kind) in are_all_items_const()4139 case Constant_kind: in infer_type()4150 case Constant_kind: in check_caller()4175 case Constant_kind: in check_subscripter()4209 case Constant_kind: in check_index()5256 case Constant_kind: in compiler_visit_expr1()[all …]
1696 case Constant_kind: in symtable_visit_expr()
3021 p->kind = Constant_kind; in _PyAST_Constant()4485 case Constant_kind: in ast2obj_expr()
223 case Constant_kind: { in _PyPegen_get_expr_name()2442 if (exp->kind != Constant_kind || !PyComplex_CheckExact(exp->v.Constant.value)) { in _PyPegen_ensure_imaginary()2452 if (exp->kind != Constant_kind || PyComplex_CheckExact(exp->v.Constant.value)) { in _PyPegen_ensure_real()
337 FormattedValue_kind=18, JoinedStr_kind=19, Constant_kind=20, enumerator