diff --git a/crates/oxc_linter/src/module_record.rs b/crates/oxc_linter/src/module_record.rs index 5918b7b17b9a1..667012cdb13f0 100644 --- a/crates/oxc_linter/src/module_record.rs +++ b/crates/oxc_linter/src/module_record.rs @@ -282,6 +282,9 @@ impl<'a> From<&oxc_syntax::module_record::ImportImportName<'a>> for ImportImport /// ``` #[derive(Debug, Default, Clone, PartialEq, Eq)] pub struct ExportEntry { + /// Span of the export statement. + pub statement_span: Span, + /// Span for the entire export entry pub span: Span, @@ -319,6 +322,7 @@ pub struct ExportEntry { impl<'a> From<&oxc_syntax::module_record::ExportEntry<'a>> for ExportEntry { fn from(other: &oxc_syntax::module_record::ExportEntry<'a>) -> Self { Self { + statement_span: other.statement_span, span: other.span, module_request: other.module_request.as_ref().map(NameSpan::from), import_name: ExportImportName::from(&other.import_name),