Skip to main content

Module source_map

Module source_map 

Source
Expand description

Source mapping for macro-expanded and generated code.

This module provides a SourceMap that tracks the origin of every byte of source text, including code produced by macro expansions or code generators. It can translate between byte offsets and line/column positions and can walk back through the chain of macro expansions to find the original user-written source location.

Re-exports§

pub use functions::*;
pub use types::*;

Modules§

functions
Functions for source map construction and querying.
types
Types for source mapping of macro-expanded and generated code.