mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-30 23:27:27 +00:00
Remove dependency on ruff_rowan
(#2875)
This PR removes the dependency on `ruff_rowan` (i.e., Rome's fork of rust-analyzer's `rowan`), and in turn, trims out a lot of code in `ruff_formatter` that isn't necessary (or isn't _yet_ necessary) to power the autoformatter. We may end up pulling some of this back in -- TBD. For example, the autoformatter has its own comment representation right now, but we may eventually want to use the `comments.rs` data structures defined in `rome_formatter`.
This commit is contained in:
parent
5a84df293f
commit
f661c90bd7
61 changed files with 39 additions and 17489 deletions
|
@ -1,19 +1,10 @@
|
|||
pub use crate::builders::*;
|
||||
pub use crate::format_element::document::Document;
|
||||
pub use crate::format_element::tag::{LabelId, Tag, TagKind};
|
||||
pub use crate::format_element::*;
|
||||
pub use crate::format_extensions::{MemoizeFormat, Memoized};
|
||||
pub use crate::formatter::Formatter;
|
||||
pub use crate::printer::PrinterOptions;
|
||||
pub use crate::trivia::{
|
||||
format_dangling_comments, format_leading_comments, format_only_if_breaks, format_removed,
|
||||
format_replaced, format_trailing_comments, format_trimmed_token,
|
||||
};
|
||||
|
||||
pub use crate::diagnostics::FormatError;
|
||||
pub use crate::format_element::document::Document;
|
||||
pub use crate::format_element::tag::{LabelId, Tag, TagKind};
|
||||
pub use crate::verbatim::{
|
||||
format_bogus_node, format_or_verbatim, format_suppressed_node, format_verbatim_node,
|
||||
};
|
||||
|
||||
pub use crate::{
|
||||
best_fitting, dbg_write, format, format_args, write, Buffer as _, BufferExtensions, Format,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue