oxc/crates/oxc_span/src/lib.rs
ottomated e310e52ca2
feat(parser): Generate Serialize impls in ast_tools (#6404)
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>
2024-10-19 09:38:44 +01:00

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;
}