mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:42:02 +00:00
Add text_len()
methods to more *Prefix
enums in ruff_python_ast
(#16254)
This commit is contained in:
parent
55ea09401a
commit
f50849aeef
2 changed files with 23 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ pub trait StringFlags: Copy {
|
|||
/// i.e., the length of the prefixes plus the length
|
||||
/// of the quotes used to open the string.
|
||||
fn opener_len(self) -> TextSize {
|
||||
self.prefix().as_str().text_len() + self.quote_len()
|
||||
self.prefix().text_len() + self.quote_len()
|
||||
}
|
||||
|
||||
/// The total length of the string's closer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue