Expand description
Provides fundamental types for source code location tracking.
This crate defines the core primitives Position and Span used throughout
mago to identify specific locations in source files. It also provides
the generic traits HasPosition and HasSpan to abstract over any syntax
tree node or token that has a location.
Structs§
- Position
- Represents a specific byte offset within a single source file.
- Span
- Represents a contiguous range of source code within a single file.
Traits§
- HasPosition
- A trait for types that have a single, defined source position.
- HasSpan
- A trait for types that cover a span of source code.