refactor(ast): remove excess line breaks from generated code (#8830)

Pure refactor. Just remove excess line breaks.
This commit is contained in:
overlookmotel committed 2025-02-01 20:05:17 +00:00
1 parent 30eec26c4a
commit 0568210f78
10 files changed
+2 -26

No files matched your search

@@ -6,13 +6,9 @@
use oxc_allocator::{Allocator, CloneIn};
use crate::ast::comment::*;
use crate::ast::js::*;
use crate::ast::jsx::*;
use crate::ast::literal::*;
use crate::ast::ts::*;
impl<'alloc> CloneIn<'alloc> for BooleanLiteral {
@@ -6,13 +6,9 @@
use oxc_span::cmp::ContentEq;
use crate::ast::comment::*;
use crate::ast::js::*;
use crate::ast::jsx::*;
use crate::ast::literal::*;
use crate::ast::ts::*;
impl ContentEq for BooleanLiteral {
@@ -6,11 +6,8 @@
use serde::{ser::SerializeMap, Serialize, Serializer};
use crate::ast::js::*;
use crate::ast::jsx::*;
use crate::ast::literal::*;
use crate::ast::ts::*;
impl Serialize for BooleanLiteral {
@@ -6,9 +6,7 @@
use oxc_allocator::{Address, GetAddress};
use crate::ast::js::*;
use crate::ast::jsx::*;
use crate::ast::ts::*;
impl GetAddress for Expression<'_> {
@@ -6,11 +6,8 @@
use oxc_span::{GetSpan, Span};
use crate::ast::js::*;
use crate::ast::jsx::*;
use crate::ast::literal::*;
use crate::ast::ts::*;
impl GetSpan for BooleanLiteral {
@@ -6,11 +6,8 @@
use oxc_span::{GetSpanMut, Span};
use crate::ast::js::*;
use crate::ast::jsx::*;
use crate::ast::literal::*;
use crate::ast::ts::*;
impl GetSpanMut for BooleanLiteral {
@@ -6,7 +6,6 @@
use serde::{ser::SerializeMap, Serialize, Serializer};
use crate::source_type::*;
use crate::span::types::*;
impl Serialize for Span {
@@ -6,7 +6,6 @@
use oxc_allocator::{Allocator, CloneIn};
use crate::number::*;
use crate::operator::*;
impl<'alloc> CloneIn<'alloc> for NumberBase {
@@ -6,7 +6,6 @@
use oxc_span::cmp::ContentEq;
use crate::number::*;
use crate::operator::*;
impl ContentEq for NumberBase {
+2 -4
View File
@@ -52,15 +52,13 @@ pub trait Derive {
.chain(["*"])
.join("::");
let use_module: ItemUse = parse_str(format!("use {local_path};").as_str()).unwrap();
quote! {
///@@line_break
#use_module
}
quote!( #use_module )
});
quote! {
#prelude
///@@line_break
#(#use_modules)*
///@@line_break