Home
last modified time | relevance | path

Searched refs:JoinedStr (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Lib/test/
Dtest_fstring.py98 self.assertEqual(type(t.body[1].value), ast.JoinedStr)
126 self.assertEqual(type(t.body[0].value), ast.JoinedStr)
130 self.assertEqual(type(t.body[1].value), ast.JoinedStr)
181 self.assertEqual(type(t.body[1].value), ast.JoinedStr)
192 self.assertEqual(type(binop.right), ast.JoinedStr)
227 self.assertEqual(type(t.body[1].value), ast.JoinedStr)
287 self.assertEqual(type(t.body[0].value), ast.JoinedStr)
322 self.assertEqual(type(t.body[1].value), ast.JoinedStr)
383 self.assertEqual(type(fstring), ast.JoinedStr)
Dtest_unparse.py327 self.check_invalid(ast.JoinedStr(values=[ast.Constant(value=100)]))
/third_party/python/Parser/
DPython.asdl78 | JoinedStr(expr* values)
/third_party/python/Tools/i18n/
Dpygettext.py350 if not isinstance(maybe_fstring, ast.JoinedStr):
/third_party/python/Doc/library/
Dast.rst170 isolated otherwise it appears in :class:`JoinedStr`.
181 * ``format_spec`` is a :class:`JoinedStr` node representing the formatting
186 .. class:: JoinedStr(values)
195 body=JoinedStr(
209 format_spec=JoinedStr(
/third_party/python/Include/internal/
Dpycore_ast.h437 } JoinedStr; member
/third_party/python/Python/
Dast_unparse.c646 PyObject *body = build_fstring_body(e->v.JoinedStr.values, is_format_spec); in append_joinedstr()
Dast_opt.c567 CALL_SEQ(astfold_expr, expr, node_->v.JoinedStr.values); in astfold_expr()
Dast.c322 ret = validate_exprs(state, exp->v.JoinedStr.values, Load, 0); in validate_expr()
Dcompile.c4312 Py_ssize_t value_count = asdl_seq_LEN(e->v.JoinedStr.values); in compiler_joined_str()
4322 for (Py_ssize_t i = 0; i < asdl_seq_LEN(e->v.JoinedStr.values); i++) { in compiler_joined_str()
4323 VISIT(c, expr, asdl_seq_GET(e->v.JoinedStr.values, i)); in compiler_joined_str()
4329 VISIT_SEQ(c, expr, e->v.JoinedStr.values); in compiler_joined_str()
4330 if (asdl_seq_LEN(e->v.JoinedStr.values) != 1) { in compiler_joined_str()
4331 ADDOP_I(c, BUILD_STRING, asdl_seq_LEN(e->v.JoinedStr.values)); in compiler_joined_str()
Dsymtable.c1694 VISIT_SEQ(st, expr, e->v.JoinedStr.values); in symtable_visit_expr()
DPython-ast.c3000 p->v.JoinedStr.values = values; in _PyAST_JoinedStr()
4478 value = ast2obj_list(state, (asdl_seq*)o->v.JoinedStr.values, in ast2obj_expr()