ruff/crates/ruff_python_formatter/src
Charlie Marsh 1334232168
Introduce ExpressionRef (#6637)
## Summary

This PR revives the `ExpressionRef` concept introduced in
https://github.com/astral-sh/ruff/pull/5644, motivated by the change we
want to make in https://github.com/astral-sh/ruff/pull/6575 to narrow
the type of the expression that can be passed to `parenthesized_range`.

## Test Plan

`cargo test`
2023-08-17 10:07:16 -04:00
..
comments Support fmt: skip on compound statements (#6593) 2023-08-17 06:05:41 +00:00
expression Introduce ExpressionRef (#6637) 2023-08-17 10:07:16 -04:00
module Add empty lines before nested functions and classes (#6206) 2023-08-01 15:30:59 +00:00
other Support fmt: skip on compound statements (#6593) 2023-08-17 06:05:41 +00:00
pattern Call pattern formatting (#6594) 2023-08-16 08:31:25 +05:30
snapshots Remove exception-handler lexing from unused-bound-exception fix (#5851) 2023-07-18 18:27:46 +00:00
statement Support fmt: skip on compound statements (#6593) 2023-08-17 06:05:41 +00:00
type_param Use single lookup for leading, dangling, and trailing comments (#6589) 2023-08-15 17:39:45 +02:00
builders.rs Add trailing comma for single-element import-from groups (#6583) 2023-08-15 07:15:33 -04:00
cli.rs Formatter: Add SourceType to context to enable special formatting for stub files (#6331) 2023-08-04 11:52:26 +00:00
context.rs Implement DerefMut for WithNodeLevel (#6443) 2023-08-11 10:41:48 +00:00
generated.rs Remove Stmt::TryStar (#6566) 2023-08-14 13:39:44 -04:00
lib.rs Support fmt: skip for simple-statements and decorators (#6561) 2023-08-17 05:58:19 +00:00
main.rs Formatter: Add SourceType to context to enable special formatting for stub files (#6331) 2023-08-04 11:52:26 +00:00
options.rs Use one line between top-level items if formatting a stub file (#6501) 2023-08-15 09:33:57 +02:00
prelude.rs Accept any Into<AnyNodeRef> as Comments arguments (#5205) 2023-06-20 16:49:21 +00:00
verbatim.rs Support fmt: skip on compound statements (#6593) 2023-08-17 06:05:41 +00:00