pub struct ReExportInfo {
pub source: String,
pub imported_name: String,
pub exported_name: String,
pub is_type_only: bool,
pub span: Span,
pub statement_span: Span,
pub source_span: Span,
pub visibility: VisibilityTag,
pub expected_unused_reason: Option<String>,
}Expand description
A re-export declaration.
Fields§
§source: StringThe module being re-exported from.
imported_name: StringThe name imported from the source module (or * for star re-exports).
exported_name: StringThe name exported from this module.
is_type_only: boolWhether this is a type-only re-export.
span: SpanSource span of the re-export declaration on this module.
statement_span: SpanSpan of the whole re-export statement. A multi-binding statement
yields one ReExportInfo per binding, each with a per-binding
span; this field lets consumers reason about the enclosing
statement (e.g. suppression coverage). Empty (start == end) for
synthesized re-exports that have no single owning statement.
source_span: SpanSpan of the source string literal (the specifier in quotes), used to
anchor unresolved-import findings on the specifier. Empty
(start == end) when no literal exists in the statement.
visibility: VisibilityTagVisibility tag from the JSDoc block on the re-export statement, such
as /** @public */ export { a } from './a'.
expected_unused_reason: Option<String>Reason text after -- in an @expected-unused tag on the re-export
statement, such as @expected-unused -- kept for the next major.