cljs.source-map
(indexed-sources sources)
Take a seq of source file names and return a map from
file number to integer index. For reverse source maps.
(invert-reverse-map reverse-map)
Given a ClojureScript to JavaScript source map, invert it. Useful when
mapping JavaScript stack traces when environment support is unavailable.
(lines->segs lines)
Take a nested sorted map encoding line and column information
for a file and return a vector of vectors of encoded segments.
Each vector represents a line, and the internal vectors are segments
representing the contents of the line.
(merge-source-maps cljs-map js-map)
Merge an internal source map representation of a single
ClojureScript file mapping original to generated with a
second source map mapping original JS to generated JS.
The is to support source maps that work through multiple
compilation steps like Google Closure optimization passes.
(seg-combine seg relseg)
Combine a source map segment vector and a relative
source map segment vector and combine them to get
an absolute segment posititon information as a vector.
(source-compare sources)
Take a seq of source file names and return a comparator
that can be used to construct a sorted map. For reverse
source maps.