Home
last modified time | relevance | path

Searched refs:FormattedValue (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_fstring.py87 self.assertEqual(type(t.body[1].value.values[0]), ast.FormattedValue)
120 self.assertEqual(type(t.body[1].value.values[1]), ast.FormattedValue)
122 self.assertEqual(type(t.body[1].value.values[3]), ast.FormattedValue)
168 self.assertEqual(type(t.body[1].value.values[0]), ast.FormattedValue)
187 self.assertEqual(type(binop.right.values[1]), ast.FormattedValue)
217 self.assertEqual(type(t.body[1].value.values[0]), ast.FormattedValue)
219 self.assertEqual(type(t.body[1].value.values[2]), ast.FormattedValue)
221 self.assertEqual(type(t.body[1].value.values[4]), ast.FormattedValue)
291 self.assertEqual(type(t.body[1].value.values[1]), ast.FormattedValue)
/external/python/cpython3/Python/
Dast_unparse.c641 PyObject *temp_fv_str = expr_as_unicode(e->v.FormattedValue.value, PR_TEST + 1); in append_formattedvalue()
660 if (e->v.FormattedValue.conversion > 0) { in append_formattedvalue()
661 switch (e->v.FormattedValue.conversion) { in append_formattedvalue()
678 if (e->v.FormattedValue.format_spec) { in append_formattedvalue()
681 e->v.FormattedValue.format_spec, in append_formattedvalue()
Dast_opt.c585 CALL(astfold_expr, expr_ty, node_->v.FormattedValue.value); in astfold_expr()
586 CALL_OPT(astfold_expr, expr_ty, node_->v.FormattedValue.format_spec); in astfold_expr()
Dsymtable.c1460 VISIT(st, expr, e->v.FormattedValue.value); in symtable_visit_expr()
1461 if (e->v.FormattedValue.format_spec) in symtable_visit_expr()
1462 VISIT(st, expr, e->v.FormattedValue.format_spec); in symtable_visit_expr()
DPython-ast.c2131 FormattedValue(expr_ty value, int conversion, expr_ty format_spec, int lineno, in FormattedValue() function
2144 p->v.FormattedValue.value = value; in FormattedValue()
2145 p->v.FormattedValue.conversion = conversion; in FormattedValue()
2146 p->v.FormattedValue.format_spec = format_spec; in FormattedValue()
3313 value = ast2obj_expr(o->v.FormattedValue.value); in ast2obj_expr()
3318 value = ast2obj_int(o->v.FormattedValue.conversion); in ast2obj_expr()
3323 value = ast2obj_expr(o->v.FormattedValue.format_spec); in ast2obj_expr()
6705 *out = FormattedValue(value, conversion, format_spec, lineno, in obj2ast_expr()
Dast.c318 if (validate_expr(exp->v.FormattedValue.value, Load) == 0) in validate_expr()
320 if (exp->v.FormattedValue.format_spec) in validate_expr()
321 return validate_expr(exp->v.FormattedValue.format_spec, Load); in validate_expr()
4647 *expression = FormattedValue(simple_expression, conversion, in fstring_find_expr()
Dcompile.c3611 VISIT(c, expr, e->v.FormattedValue.value); in compiler_formatted_value()
3613 switch (e->v.FormattedValue.conversion) { in compiler_formatted_value()
3623 if (e->v.FormattedValue.format_spec) { in compiler_formatted_value()
3625 VISIT(c, expr, e->v.FormattedValue.format_spec); in compiler_formatted_value()
/external/python/cpython3/Parser/
DPython.asdl80 | FormattedValue(expr value, int? conversion, expr? format_spec)
/external/python/cpython3/Include/
DPython-ast.h312 } FormattedValue; member
573 #define FormattedValue(a0, a1, a2, a3, a4, a5) _Py_FormattedValue(a0, a1, a2, a3, a4, a5) macro
/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2.py1705 allowed_types += [ast.FormattedValue]