Expand description
This crate provides the basic environments for Kailua.
-
Location types (
Unit,Pos,Span) and a location-bundled container (Spanned) -
Scope identifiers and a location-to-scope map (
kailua_env::scope) -
The resolver for locations (
kailua_env::source) -
An arbitrary mapping from location ranges to values (
kailua_env::spanmap)
Re-exports§
pub use scope::Scope;pub use scope::ScopedId;pub use scope::ScopeMap;pub use source::Source;pub use source::SourceFile;pub use source::SourceSlice;pub use source::SourceData;pub use spanmap::SpanMap;
Modules§
- scope
- Scope identifiers and a location-to-scope map.
- source
- The resolver for locations.
- spanmap
- An arbitrary mapping from location ranges to values.
Structs§
- Pos
- A position in the originating
Source. - Span
- A span of the range in the originating
Source. - Spanned
- A value with optional
Span. - Unit
- An identifier for the code unit, unique in the originating
Source.
Traits§
- WithLoc
- A helper trait for constructing
Spanned<T>value.