Skip to content

Commit a394e91

Browse files
committed
refactor(ast): remove unneccesary #[estree(field_order)] attrs
1 parent 0a9473d commit a394e91

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

crates/oxc_ast/src/ast/comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'alloc> CloneIn<'alloc> for CommentNewlines {
123123
#[ast]
124124
#[generate_derive(CloneIn, ContentEq, ESTree)]
125125
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq)]
126-
#[estree(add_fields(value = CommentValue), field_order(kind, value, span), no_ts_def)]
126+
#[estree(add_fields(value = CommentValue), no_ts_def)]
127127
pub struct Comment {
128128
/// The span of the comment text, with leading and trailing delimiters.
129129
pub span: Span,

crates/oxc_ast/src/ast/literal.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,7 @@ pub struct StringLiteral<'a> {
100100
#[ast(visit)]
101101
#[derive(Debug, Clone)]
102102
#[generate_derive(CloneIn, Dummy, TakeIn, ContentEq, GetSpan, GetSpanMut, ESTree)]
103-
#[estree(
104-
rename = "Literal",
105-
add_fields(bigint = BigIntLiteralBigint),
106-
field_order(value, raw, bigint, span),
107-
)]
103+
#[estree(rename = "Literal", add_fields(bigint = BigIntLiteralBigint))]
108104
pub struct BigIntLiteral<'a> {
109105
/// Node location in source code
110106
pub span: Span,

crates/oxc_ast/src/ast/ts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use super::{inherit_variants, js::*, literal::*};
4444
#[generate_derive(CloneIn, Dummy, TakeIn, GetSpan, GetSpanMut, ContentEq, ESTree)]
4545
#[estree(
4646
rename = "Identifier",
47-
add_fields(name = This, decorators = EmptyArray, optional = False),
47+
add_fields(decorators = EmptyArray, name = This, optional = False),
4848
field_order(decorators, name, optional, type_annotation, span),
4949
)]
5050
pub struct TSThisParameter<'a> {

0 commit comments

Comments
 (0)