mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Beginning of #6347. Instead of using serde-derive, we generate `Serialize` impls manually. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: overlookmotel <theoverlookmotel@gmail.com>
33 lines
728 B
Rust
33 lines
728 B
Rust
//! Source positions and related helper functions.
|
|
//!
|
|
//! <https://doc.rust-lang.org/beta/nightly-rustc/rustc_span>
|
|
|
|
#![warn(missing_docs)]
|
|
|
|
mod atom;
|
|
mod compact_str;
|
|
mod source_type;
|
|
mod span;
|
|
|
|
pub mod cmp;
|
|
pub mod hash;
|
|
|
|
pub use crate::{
|
|
atom::Atom,
|
|
compact_str::{CompactStr, MAX_INLINE_LEN as ATOM_MAX_INLINE_LEN},
|
|
source_type::{
|
|
Language, LanguageVariant, ModuleKind, SourceType, UnknownExtension, VALID_EXTENSIONS,
|
|
},
|
|
span::{GetSpan, GetSpanMut, Span, SPAN},
|
|
};
|
|
|
|
mod generated {
|
|
#[cfg(feature = "serialize")]
|
|
pub mod derive_estree;
|
|
}
|
|
|
|
#[doc(hidden)]
|
|
pub mod __internal {
|
|
// Used by `format_compact_str!` macro defined in `compact_str.rs`
|
|
pub use compact_str::format_compact;
|
|
}
|