diff --git a/source-map.bs b/source-map.bs index e9cb9a6..15aa19c 100644 --- a/source-map.bs +++ b/source-map.bs @@ -280,9 +280,9 @@ Terms and definitions {#terminology} For the purposes of this document, the following terms and definitions apply. : Generated Code -:: The code which is generated by the compiler or transpiler. +:: code which is generated by the compiler or transpiler. : Original Source -:: The source code which has not been passed through the compiler. +:: source code which has not been passed through the compiler. : Base64 VLQ [[VLQ]] :: A [[base64]] value, where the most significant bit (the 6th bit) is used as the continuation bit, and the "digits" are encoded into the string least significant first, and where the least @@ -309,15 +309,15 @@ For the purposes of this document, the following terms and definitions apply. The decoding of this VLQ string is the number -10. : Source Mapping URL -:: The URL referencing the location of a source map from the [=Generated code=]. +:: URL referencing the location of a source map from the [=Generated code=]. : Column -:: The zero-based indexed offset within a line of the generated code. How this offset is - measured can depend on the content type. For JavaScript and CSS based source - maps, they are defined to be in UTF-16 code units analogous to JavaScript string indices. That means - that "A" (`LATIN CAPITAL LETTER A`) measures as 1 code unit, and "🔥" (`FIRE`) measures as 2 code - units. For WebAssembly, columns are defined as byte offsets from the beginning of the binary - content (and there is only one group representing a line). Source maps for other content types - may diverge from this. +:: zero-based indexed offset within a line of the generated code, computed as + UTF-16 code units for JavaScript and CSS source maps, and as byte indexes in + the binary content (represented as a single line) for WebAssembly source maps. + + Note: That means that "A" (`LATIN CAPITAL LETTER A`) measures as 1 code unit, + and "🔥" (`FIRE`) measures as 2 code units. Source maps for other content types + may diverge from this. Source Map Format {#source-map-format} ======================================