ruff/crates/ruff_python_formatter/src
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
..
comments Consistently name comment own line/end-of-line line_position() (#5215) 2023-06-21 11:04:56 +02:00
expression Consistently name comment own line/end-of-line line_position() (#5215) 2023-06-21 11:04:56 +02:00
module Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
other Fix ArgWithDefault comments handling (#5204) 2023-06-20 20:48:07 +00:00
pattern Use dedicated structs in comparable.rs (#5042) 2023-06-13 03:57:34 +00:00
snapshots Format UnaryExpr 2023-06-21 10:09:47 +02:00
statement Consistently name comment own line/end-of-line line_position() (#5215) 2023-06-21 11:04:56 +02:00
builders.rs Add basic Constant formatting (#4954) 2023-06-08 11:42:44 +00:00
cli.rs Fix ArgWithDefault comments handling (#5204) 2023-06-20 20:48:07 +00:00
context.rs Format binary expressions (#4862) 2023-06-06 08:34:53 +00:00
generated.rs Upgrade RustPython (#5192) 2023-06-19 21:09:53 +00:00
lib.rs Format UnaryExpr 2023-06-21 10:09:47 +02:00
main.rs Add a formatter CLI for debugging (#4809) 2023-06-05 07:33:33 +00:00
prelude.rs Accept any Into<AnyNodeRef> as Comments arguments (#5205) 2023-06-20 16:49:21 +00:00
trivia.rs basic formatting for ExprDict (#5167) 2023-06-20 09:25:08 +00:00