package sourcemap
import "github.com/evanw/esbuild/internal/sourcemap"
Index ¶
- func DecodeVLQ(encoded []byte, start int) (int, int)
- func DecodeVLQUTF16(encoded []uint16) (int, int, bool)
- func EncodeVLQ(value int) []byte
- type Mapping
- type SourceMap
Functions ¶
func DecodeVLQ ¶
func DecodeVLQUTF16 ¶
func EncodeVLQ ¶
A single base 64 digit can contain 6 bits of data. For the base 64 variable length quantities we use in the source map spec, the first bit is the sign, the next four bits are the actual value, and the 6th bit is the continuation bit. The continuation bit tells us whether there are more digits in this value following this digit.
Continuation | Sign | | V V 101011
Types ¶
type Mapping ¶
type Mapping struct { GeneratedLine int32 // 0-based GeneratedColumn int32 // 0-based count of UTF-16 code units SourceIndex int32 // 0-based OriginalLine int32 // 0-based OriginalColumn int32 // 0-based count of UTF-16 code units }
type SourceMap ¶
func (*SourceMap) Find ¶
Source Files ¶
- Version
- v0.8.8
- Published
- Nov 16, 2020
- Platform
- windows/amd64
- Imports
- 1 packages
- Last checked
- 6 hours ago –
Tools for package owners.