File tree 2 files changed +9
-0
lines changed
crates/oxc_ast/src/generated
tasks/ast_codegen/src/generators
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
use crate :: ast:: * ;
5
5
use oxc_span:: { GetSpan , Span } ;
6
+
6
7
#[ derive( Debug , Clone , Copy ) ]
7
8
pub enum AstType {
8
9
BooleanLiteral ,
@@ -166,6 +167,7 @@ pub enum AstType {
166
167
ClassHeritage ,
167
168
ExpressionArrayElement ,
168
169
}
170
+
169
171
/// Untyped AST Node Kind
170
172
#[ derive( Debug , Clone , Copy ) ]
171
173
pub enum AstKind < ' a > {
@@ -330,6 +332,7 @@ pub enum AstKind<'a> {
330
332
ClassHeritage ( & ' a Expression < ' a > ) ,
331
333
ExpressionArrayElement ( & ' a Expression < ' a > ) ,
332
334
}
335
+
333
336
impl < ' a > GetSpan for AstKind < ' a > {
334
337
#[ allow( clippy:: match_same_arms) ]
335
338
fn span ( & self ) -> Span {
Original file line number Diff line number Diff line change @@ -132,17 +132,23 @@ impl Generator for AstKindGenerator {
132
132
use crate :: ast:: * ;
133
133
use oxc_span:: { GetSpan , Span } ;
134
134
135
+ endl!( ) ;
136
+
135
137
#[ derive( Debug , Clone , Copy ) ]
136
138
pub enum AstType {
137
139
#( #types) , * ,
138
140
}
139
141
142
+ endl!( ) ;
143
+
140
144
/// Untyped AST Node Kind
141
145
#[ derive( Debug , Clone , Copy ) ]
142
146
pub enum AstKind <' a> {
143
147
#( #kinds) , * ,
144
148
}
145
149
150
+ endl!( ) ;
151
+
146
152
impl <' a> GetSpan for AstKind <' a> {
147
153
#[ allow( clippy:: match_same_arms) ]
148
154
fn span( & self ) -> Span {
You can’t perform that action at this time.
0 commit comments