ruff/crates/ruff_python_formatter/src/statement
konstin db301c14bd
Consistently name comment own line/end-of-line `line_position()` (#5215)
## Summary

Previously, `DecoratedComment` used `text_position()` and
`SourceComment` used `position()`. This PR unifies this to
`line_position` everywhere.

## Test Plan

This is a rename refactoring.
2023-06-21 11:04:56 +02:00
..
mod.rs Run `rustfmt` on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
stmt_ann_assign.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_assert.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_assign.rs Run `rustfmt` on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
stmt_async_for.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_async_function_def.rs Format Function definitions (#4951) 2023-06-08 16:07:33 +00:00
stmt_async_with.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_aug_assign.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_break.rs format StmtBreak (#5158) 2023-06-17 10:31:29 +02:00
stmt_class_def.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_continue.rs Format `continue` statement (#5165) 2023-06-18 11:25:59 +00:00
stmt_delete.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_expr.rs Format binary expressions (#4862) 2023-06-06 08:34:53 +00:00
stmt_for.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_function_def.rs Consistently name comment own line/end-of-line `line_position()` (#5215) 2023-06-21 11:04:56 +02:00
stmt_global.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_if.rs Consistently name comment own line/end-of-line `line_position()` (#5215) 2023-06-21 11:04:56 +02:00
stmt_import.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_import_from.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_match.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_nonlocal.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_pass.rs Implement StmtPass (#4959) 2023-06-08 16:29:27 +02:00
stmt_raise.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_return.rs Implement StmtReturn (#4960) 2023-06-08 16:29:39 +02:00
stmt_try.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_try_star.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
stmt_while.rs Consistently name comment own line/end-of-line `line_position()` (#5215) 2023-06-21 11:04:56 +02:00
stmt_with.rs Replace verbatim text with `NOT_YET_IMPLEMENTED` (#4904) 2023-06-07 14:57:25 +02:00
suite.rs Accept any `Into<AnyNodeRef>` as `Comments` arguments (#5205) 2023-06-20 16:49:21 +00:00