mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Rename Comments methods (#6649)
This commit is contained in:
parent
3ceb6fbeb0
commit
0cea4975fc
44 changed files with 128 additions and 172 deletions
|
@ -22,7 +22,7 @@ impl FormatNodeRule<StmtIf> for FormatStmtIf {
|
|||
} = item;
|
||||
|
||||
let comments = f.context().comments().clone();
|
||||
let trailing_colon_comment = comments.dangling_comments(item);
|
||||
let trailing_colon_comment = comments.dangling(item);
|
||||
|
||||
write!(
|
||||
f,
|
||||
|
@ -73,8 +73,8 @@ pub(crate) fn format_elif_else_clause(
|
|||
} = item;
|
||||
|
||||
let comments = f.context().comments().clone();
|
||||
let trailing_colon_comment = comments.dangling_comments(item);
|
||||
let leading_comments = comments.leading_comments(item);
|
||||
let trailing_colon_comment = comments.dangling(item);
|
||||
let leading_comments = comments.leading(item);
|
||||
|
||||
write!(
|
||||
f,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue