mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
Rename JoinedStr
to FString
in the AST (#6379)
## Summary Per the proposal in https://github.com/astral-sh/ruff/discussions/6183, this PR renames the `JoinedStr` node to `FString`.
This commit is contained in:
parent
999d88e773
commit
3f0eea6d87
56 changed files with 166 additions and 166 deletions
|
@ -243,7 +243,7 @@ impl<'a> StringParser<'a> {
|
|||
let start_location = self.get_pos();
|
||||
let parsed_spec = self.parse_spec(nested)?;
|
||||
|
||||
spec = Some(Box::new(Expr::from(ast::ExprJoinedStr {
|
||||
spec = Some(Box::new(Expr::from(ast::ExprFString {
|
||||
values: parsed_spec,
|
||||
range: self.range(start_location),
|
||||
})));
|
||||
|
@ -671,7 +671,7 @@ pub(crate) fn parse_strings(
|
|||
deduped.push(take_current(&mut current, current_start, current_end));
|
||||
}
|
||||
|
||||
Ok(Expr::JoinedStr(ast::ExprJoinedStr {
|
||||
Ok(Expr::FString(ast::ExprFString {
|
||||
values: deduped,
|
||||
range: TextRange::new(initial_start, last_end),
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue