Versions in this module Expand all Collapse all v0 v0.17.19 May 19, 2023 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) (int32, int, bool) + type Chunk struct + Buffer MappingsBuffer + EndState SourceMapState + FinalGeneratedColumn int + QuotedNames [][]byte + ShouldIgnore bool + type ChunkBuilder struct + func MakeChunkBuilder(inputSourceMap *SourceMap, lineOffsetTables []LineOffsetTable, asciiOnly bool) ChunkBuilder + func (b *ChunkBuilder) AddSourceMapping(originalLoc logger.Loc, originalName string, 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 + OriginalName ast.Index32 + SourceIndex int32 + type MappingsBuffer struct + Data []byte + FirstNameOffset ast.Index32 + type SourceContent struct + Quoted string + Value []uint16 + type SourceMap struct + Mappings []Mapping + Names []string + 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 + HasOriginalName bool + OriginalColumn int + OriginalLine int + OriginalName int + SourceIndex int