Versions in this module Expand all Collapse all v0 v0.14.15 Jan 31, 2022 v0.14.14 Jan 30, 2022 Changes in this version + func AppendSourceMapChunk(j *helpers.Joiner, prevEndState SourceMapState, startState SourceMapState, ...) + func DecodeVLQ(encoded []byte, start int) (int, int) + func DecodeVLQUTF16(encoded []uint16) (int, int, bool) + func EncodeVLQ(value int) []byte + type Chunk struct + Buffer []byte + EndState SourceMapState + FinalGeneratedColumn int + ShouldIgnore bool + type ChunkBuilder struct + func MakeChunkBuilder(inputSourceMap *SourceMap, lineOffsetTables []LineOffsetTable) ChunkBuilder + func (b *ChunkBuilder) AddSourceMapping(loc logger.Loc, output []byte) + func (b *ChunkBuilder) GenerateChunk(output []byte) Chunk + type LineColumnOffset struct + Columns int + Lines int + func (a *LineColumnOffset) Add(b LineColumnOffset) + func (a LineColumnOffset) ComesBefore(b LineColumnOffset) bool + func (offset *LineColumnOffset) AdvanceBytes(bytes []byte) + func (offset *LineColumnOffset) AdvanceString(text string) + type LineOffsetTable struct + func GenerateLineOffsetTables(contents string, approximateLineCount int32) []LineOffsetTable + type Mapping struct + GeneratedColumn int32 + GeneratedLine int32 + OriginalColumn int32 + OriginalLine int32 + SourceIndex int32 + type SourceContent struct + Quoted string + Value []uint16 + type SourceMap struct + Mappings []Mapping + Sources []string + SourcesContent []SourceContent + func (sm *SourceMap) Find(line int32, column int32) *Mapping + type SourceMapPieces struct + Mappings []byte + Prefix []byte + Suffix []byte + func (pieces SourceMapPieces) Finalize(shifts []SourceMapShift) []byte + func (pieces SourceMapPieces) HasContent() bool + type SourceMapShift struct + After LineColumnOffset + Before LineColumnOffset + type SourceMapState struct + GeneratedColumn int + GeneratedLine int + OriginalColumn int + OriginalLine int + SourceIndex int