Home
last modified time | relevance | path

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

/third_party/python/Python/
H A Dast_opt.c25 node->kind = Constant_kind; in make_const()
61 if (arg->kind != Constant_kind) { in fold_unaryop()
450 if (lhs->kind != Constant_kind) { in fold_binop()
463 if (rhs->kind != Constant_kind) { in fold_binop()
522 if (e->kind != Constant_kind) { in make_const_tuple()
562 arg->kind != Constant_kind || in fold_subscr()
563 idx->kind != Constant_kind) in fold_subscr()
817 case Constant_kind: in astfold_expr()
H A Dast.c342 case Constant_kind: in validate_expr()
405 assert(exp->kind == Constant_kind); in ensure_literal_number()
422 if (operand->kind != Constant_kind) { in ensure_literal_negative()
442 case Constant_kind: in ensure_literal_complex()
458 case Constant_kind: in ensure_literal_complex()
479 case Constant_kind: in validate_pattern_match_value()
575 if (key->kind == Constant_kind) { in validate_pattern()
1055 if (e->kind == Constant_kind && PyUnicode_CheckExact(e->v.Constant.value)) { in _PyAST_GetDocString()
H A Dast_unparse.c604 case Constant_kind: in append_fstring_element()
754 if (v->kind == Constant_kind && PyLong_CheckExact(v->v.Constant.value)) { in append_ast_attribute()
879 case Constant_kind: in append_ast_expr()
H A Dcompile.c2813 if (e->kind != Constant_kind) { in check_is_arg()
3231 (s->v.Return.value->kind != Constant_kind)); in compiler_return()
4026 (s->v.Assert.test->kind == Constant_kind && in compiler_assert()
4063 if (value->kind == Constant_kind) { in compiler_visit_stmt_expr()
4546 if (key == NULL || key->kind != Constant_kind) in are_all_items_const()
4714 case Constant_kind: in infer_type()
4725 case Constant_kind: in check_caller()
4750 case Constant_kind: in check_subscripter()
4784 case Constant_kind: in check_index()
5902 case Constant_kind in compiler_visit_expr1()
[all...]
H A Dsymtable.c1689 case Constant_kind: in symtable_visit_expr()
H A DPython-ast.c3058 p->kind = Constant_kind; in _PyAST_Constant()
4567 case Constant_kind: in ast2obj_expr()
/third_party/python/Parser/
H A Daction_helpers.c965 if (exp->kind != Constant_kind || !PyComplex_CheckExact(exp->v.Constant.value)) { in _PyPegen_ensure_imaginary()
975 if (exp->kind != Constant_kind || PyComplex_CheckExact(exp->v.Constant.value)) { in _PyPegen_ensure_real()
1118 case Constant_kind: { in _PyPegen_get_expr_name()
/third_party/python/Include/internal/
H A Dpycore_ast.h344 FormattedValue_kind=18, JoinedStr_kind=19, Constant_kind=20, enumerator

Completed in 32 milliseconds