Rename Comments methods (#6649)

This commit is contained in:
Micha Reiser
2023-08-18 08:37:01 +02:00
committed by GitHub
parent 3ceb6fbeb0
commit 0cea4975fc
44 changed files with 128 additions and 172 deletions

View File

@@ -22,7 +22,7 @@ impl FormatNodeRule<StmtWhile> for FormatStmtWhile {
} = item;
let comments = f.context().comments().clone();
let dangling_comments = comments.dangling_comments(item.as_any_node_ref());
let dangling_comments = comments.dangling(item.as_any_node_ref());
let body_start = body.first().map_or(test.end(), Stmt::start);
let or_else_comments_start =