Skip to content

Commit 0a9473d

Browse files
committed
refactor(syntax): remove unnecessary #[estree(field_order)] attr (#14142)
`span` is now automatically moved to be last field, so no need to specify field order explicitly here.
1 parent 5e05d1b commit 0a9473d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_syntax/src/module_record.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<'a> ModuleRecord<'a> {
8787
#[ast]
8888
#[derive(Debug, Clone, PartialEq, Eq)]
8989
#[generate_derive(ESTree)]
90-
#[estree(no_type, no_ts_def, field_order(name, span))]
90+
#[estree(no_type, no_ts_def)]
9191
pub struct NameSpan<'a> {
9292
/// Name
9393
#[estree(rename = "value")]

0 commit comments

Comments
 (0)