ruff/crates/ruff_python_formatter/src
konstin 467df23e65
Implement StmtReturn (#4960)
* Implement StmtPass

This implements StmtPass as `pass`.

The snapshot diff is small because pass mainly occurs in bodies and function (#4951) and if/for bodies.

* Implement StmtReturn

This implements StmtReturn as `return` or `return {value}`.

The snapshot diff is small because return occurs in functions (#4951)
2023-06-08 16:29:39 +02:00
..
comments Trailing own line comments before func or class (#4921) 2023-06-08 12:50:25 +00:00
expression Add basic Constant formatting (#4954) 2023-06-08 11:42:44 +00:00
module Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
other Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
pattern Replace verbatim text with NOT_YET_IMPLEMENTED (#4904) 2023-06-07 14:57:25 +02:00
snapshots Implement StmtReturn (#4960) 2023-06-08 16:29:39 +02:00
statement Implement StmtReturn (#4960) 2023-06-08 16:29:39 +02:00
builders.rs Add basic Constant formatting (#4954) 2023-06-08 11:42:44 +00:00
cli.rs Add a formatter CLI for debugging (#4809) 2023-06-05 07:33:33 +00:00
context.rs Format binary expressions (#4862) 2023-06-06 08:34:53 +00:00
generated.rs Generate FormatRule definitions (#4724) 2023-06-01 08:38:53 +02:00
lib.rs Add basic Constant formatting (#4954) 2023-06-08 11:42:44 +00:00
main.rs Add a formatter CLI for debugging (#4809) 2023-06-05 07:33:33 +00:00
prelude.rs Suite formatting and JoinNodesBuilder (#4805) 2023-06-02 14:14:38 +00:00
trivia.rs Correctly handle newlines after/before comments (#4895) 2023-06-07 14:49:43 +02:00