Skip to main content

Module types

Module types 

Source
Expand description

Types for source mapping of macro-expanded and generated code.

Structs§

LineColumn
A Position with an associated source identifier.
Position
A 0-based line and column position within a source.
SourceId
Opaque identifier for a source file or fragment.
SourceInfo
Metadata about a single source fragment.
SourceMap
The central registry that owns all source fragments.
Span
A byte range within a specific source.
SpanChain
A chain of spans tracing a token back through macro expansions.

Enums§

SourceKind
The kind of a source fragment.