@@ -20,7 +20,7 @@ use oxc_syntax::number::{BigintBase, NumberBase};
20
20
#[ ast( visit) ]
21
21
#[ derive( Debug , Clone ) ]
22
22
#[ generate_derive( CloneIn , GetSpan , GetSpanMut , ContentEq , ESTree ) ]
23
- #[ estree( type = "Literal" , via = crate :: serialize:: ESTreeLiteral , add_ts = "raw: string | null" ) ]
23
+ #[ estree( rename = "Literal" , via = crate :: serialize:: ESTreeLiteral , add_ts = "raw: string | null" ) ]
24
24
pub struct BooleanLiteral {
25
25
/// Node location in source code
26
26
pub span : Span ,
@@ -34,7 +34,7 @@ pub struct BooleanLiteral {
34
34
#[ ast( visit) ]
35
35
#[ derive( Debug , Clone ) ]
36
36
#[ generate_derive( CloneIn , GetSpan , GetSpanMut , ContentEq , ESTree ) ]
37
- #[ estree( type = "Literal" , via = crate :: serialize:: ESTreeLiteral , add_ts = "value: null, raw: \" null\" | null" ) ]
37
+ #[ estree( rename = "Literal" , via = crate :: serialize:: ESTreeLiteral , add_ts = "value: null, raw: \" null\" | null" ) ]
38
38
pub struct NullLiteral {
39
39
/// Node location in source code
40
40
pub span : Span ,
@@ -46,7 +46,7 @@ pub struct NullLiteral {
46
46
#[ ast( visit) ]
47
47
#[ derive( Debug , Clone ) ]
48
48
#[ generate_derive( CloneIn , GetSpan , GetSpanMut , ESTree ) ]
49
- #[ estree( type = "Literal" , via = crate :: serialize:: ESTreeLiteral ) ]
49
+ #[ estree( rename = "Literal" , via = crate :: serialize:: ESTreeLiteral ) ]
50
50
pub struct NumericLiteral < ' a > {
51
51
/// Node location in source code
52
52
pub span : Span ,
@@ -67,7 +67,7 @@ pub struct NumericLiteral<'a> {
67
67
#[ ast( visit) ]
68
68
#[ derive( Debug , Clone ) ]
69
69
#[ generate_derive( CloneIn , GetSpan , GetSpanMut , ESTree ) ]
70
- #[ estree( type = "Literal" , via = crate :: serialize:: ESTreeLiteral ) ]
70
+ #[ estree( rename = "Literal" , via = crate :: serialize:: ESTreeLiteral ) ]
71
71
pub struct StringLiteral < ' a > {
72
72
/// Node location in source code
73
73
pub span : Span ,
@@ -86,7 +86,7 @@ pub struct StringLiteral<'a> {
86
86
#[ ast( visit) ]
87
87
#[ derive( Debug , Clone ) ]
88
88
#[ generate_derive( CloneIn , GetSpan , GetSpanMut , ESTree ) ]
89
- #[ estree( type = "Literal" , via = crate :: serialize:: ESTreeLiteral , add_ts = "value: null, bigint: string" ) ]
89
+ #[ estree( rename = "Literal" , via = crate :: serialize:: ESTreeLiteral , add_ts = "value: null, bigint: string" ) ]
90
90
pub struct BigIntLiteral < ' a > {
91
91
/// Node location in source code
92
92
pub span : Span ,
@@ -105,7 +105,7 @@ pub struct BigIntLiteral<'a> {
105
105
#[ derive( Debug ) ]
106
106
#[ generate_derive( CloneIn , GetSpan , GetSpanMut , ESTree ) ]
107
107
#[ estree(
108
- type = "Literal" ,
108
+ rename = "Literal" ,
109
109
via = crate :: serialize:: ESTreeLiteral ,
110
110
add_ts = "value: {} | null, regex: { pattern: string, flags: string }"
111
111
) ]
0 commit comments