Skip to main content

Module source_map

Module source_map 

Source
Expand description

Where each line of a concatenated script came from.

A language’s program is every script file it owns plus the inline <script> blocks, joined in source order into one text. A compiler reports a line of that text; the map turns it back into the file the author wrote and the line in it.

Structs§

SourceMap
The pieces of a concatenated script, in the order they were joined.
SourcePiece
One piece of a concatenated script.

Functions§

line_at
The 1-based line byte offset offset of text is on.