Utilities for building source maps (v3) for a compiler and handling source location representations
Span
, a structure which represents a section of a specific sourceSourceId
, a identifier for a source fileStringWithSourceMap
, along with the ToString
trait makes generating string representations with and adding source markings triviallsp-types-morphisms
features makes converting between the position information in lsp-types easy
git clone https://github.com/kaleidawave/source-map
cd source-map
cargo run -F inline-source-map --example source_map_creation -- LICENSE LICENSE.map
View pairings generated by uploading LICENSE.map
with https://evanw.github.io/source-map-visualization/