Use dummy verbatim formatter for all nodes (#4755)

This commit is contained in:
konstin 2023-06-01 10:25:26 +02:00 committed by GitHub
parent 59148344be
commit 9bf168c0a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
77 changed files with 330 additions and 309 deletions

View file

@ -1,12 +1,12 @@
use crate::{FormatNodeRule, PyFormatter};
use ruff_formatter::FormatResult;
use crate::{verbatim_text, FormatNodeRule, PyFormatter};
use ruff_formatter::{write, Buffer, FormatResult};
use rustpython_parser::ast::ExprSet;
#[derive(Default)]
pub struct FormatExprSet;
impl FormatNodeRule<ExprSet> for FormatExprSet {
fn fmt_fields(&self, _item: &ExprSet, _f: &mut PyFormatter) -> FormatResult<()> {
Ok(())
fn fmt_fields(&self, item: &ExprSet, f: &mut PyFormatter) -> FormatResult<()> {
write!(f, [verbatim_text(item.range)])
}
}