Home
last modified time | relevance | path

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

/third_party/python/Python/
Dast.c315 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()
Dast_opt.c24 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()
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()
890 case Constant_kind: in append_ast_expr()
Dcompile.c2564 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 …]
Dsymtable.c1696 case Constant_kind: in symtable_visit_expr()
DPython-ast.c3021 p->kind = Constant_kind; in _PyAST_Constant()
4485 case Constant_kind: in ast2obj_expr()
/third_party/python/Parser/
Dpegen.c223 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()
/third_party/python/Include/internal/
Dpycore_ast.h337 FormattedValue_kind=18, JoinedStr_kind=19, Constant_kind=20, enumerator