Expand description
Source positions and related helper functions.
Modules§
- Specialized comparison traits
- Specialized hashing traits
Macros§
- Creates a
CompactStrusing interpolation of runtime expressions.
Structs§
- An inlinable string for oxc_allocator.
- Lifetimeless version of [
Atom<'_>] which owns its own string data allocation. - Source Type for JavaScript vs TypeScript / Script vs Module / JSX
- A range in text, represented by a zero-indexed start and end offset.
- Error returned by
SourceType::from_pathwhen the file extension is not found or recognized.
Enums§
- JavaScript or TypeScript
- JSX for JavaScript and TypeScript
- Script or Module
Constants§
- Maximum length for inline string, which can be created with
CompactStr::new_const. - An Empty span useful for creating AST nodes.
- Valid file extensions
Traits§
- Get the span for an AST node
- Get mutable ref to span for an AST node