Skip to content

Commit 0f6e917

Browse files
committed
add newlines between types.
1 parent 069317c commit 0f6e917

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

crates/oxc_ast/src/generated/ast_kind.rs

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
use crate::ast::*;
55
use oxc_span::{GetSpan, Span};
6+
67
#[derive(Debug, Clone, Copy)]
78
pub enum AstType {
89
BooleanLiteral,
@@ -166,6 +167,7 @@ pub enum AstType {
166167
ClassHeritage,
167168
ExpressionArrayElement,
168169
}
170+
169171
/// Untyped AST Node Kind
170172
#[derive(Debug, Clone, Copy)]
171173
pub enum AstKind<'a> {
@@ -330,6 +332,7 @@ pub enum AstKind<'a> {
330332
ClassHeritage(&'a Expression<'a>),
331333
ExpressionArrayElement(&'a Expression<'a>),
332334
}
335+
333336
impl<'a> GetSpan for AstKind<'a> {
334337
#[allow(clippy::match_same_arms)]
335338
fn span(&self) -> Span {

tasks/ast_codegen/src/generators/ast_kind.rs

+6
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,23 @@ impl Generator for AstKindGenerator {
132132
use crate::ast::*;
133133
use oxc_span::{GetSpan, Span};
134134

135+
endl!();
136+
135137
#[derive(Debug, Clone, Copy)]
136138
pub enum AstType {
137139
#(#types),*,
138140
}
139141

142+
endl!();
143+
140144
/// Untyped AST Node Kind
141145
#[derive(Debug, Clone, Copy)]
142146
pub enum AstKind<'a> {
143147
#(#kinds),*,
144148
}
145149

150+
endl!();
151+
146152
impl<'a> GetSpan for AstKind<'a> {
147153
#[allow(clippy::match_same_arms)]
148154
fn span(&self) -> Span {

0 commit comments

Comments
 (0)