mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
Format ExpressionStarred
nodes (#5654)
This commit is contained in:
parent
9f486fa841
commit
987111f5fb
16 changed files with 192 additions and 581 deletions
|
@ -454,6 +454,13 @@ impl<'a> DecoratedComment<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl Ranged for DecoratedComment<'_> {
|
||||
#[inline]
|
||||
fn range(&self) -> TextRange {
|
||||
self.slice.range()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<DecoratedComment<'_>> for SourceComment {
|
||||
fn from(decorated: DecoratedComment) -> Self {
|
||||
Self::new(decorated.slice, decorated.line_position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue