Expand description
Common types and utilities for the tsz TypeScript compiler.
This crate provides foundational types used across all tsz crates:
- String interning (
Atom,Interner,ShardedInterner) - Common enums (
ModuleKind,NewLineKind,ScriptTarget) - Source spans (
Span,Spanned,SpanBuilder,ByteSpan) - Compiler limits and thresholds
- Position/Range types for source locations
- Source map generation
- Comment parsing utilities
Re-exports§
pub use interner::Atom;pub use interner::Interner;pub use interner::ShardedInterner;pub use common::ModuleKind;pub use common::NewLineKind;pub use common::ScriptTarget;pub use span::ByteSpan;pub use span::Span;pub use span::SpanBuilder;pub use span::Spanned;pub use position::LineMap;pub use position::Location;pub use position::Position;pub use position::Range;pub use position::SourceLocation;pub use checker_options::CheckerOptions;
Modules§
- checker_
options - Compiler options for type checking.
- comments
- Comment Preservation
- common
- Common types and constants for the compiler
- diagnostics
- interner
- String Interner for identifier deduplication.
- limits
- Cross-crate limits and thresholds for the TypeScript compiler.
- numeric
- Utilities for parsing numeric literals.
- position
- Position and location utilities for LSP.
- source_
map - Source Map Generation
- span
- Span - Source location tracking for AST nodes and diagnostics