Versions in this module Expand all Collapse all v0 v0.0.2 Apr 25, 2026 Changes in this version type Generator + func (gen *Generator) Base64DataURL() string v0.0.1 Apr 11, 2026 Changes in this version + const MissingLineOrColumn + const MissingName + const MissingSource + const MissingUTF16Column + func TryGetSourceMappingURL(lineInfo *ECMALineInfo) string + type DocumentPosition struct + FileName string + Pos int + type DocumentPositionMapper struct + func GetDocumentPositionMapper(host Host, generatedFileName string) *DocumentPositionMapper + func (d *DocumentPositionMapper) GetGeneratedPosition(loc *DocumentPosition) *DocumentPosition + func (d *DocumentPositionMapper) GetSourcePosition(loc *DocumentPosition) *DocumentPosition + type ECMALineInfo struct + func CreateECMALineInfo(text string, lineStarts core.ECMALineStarts) *ECMALineInfo + func (li *ECMALineInfo) LineCount() int + func (li *ECMALineInfo) LineText(line int) string + type Generator struct + func NewGenerator(file string, sourceRoot string, sourcesDirectoryPath string, ...) *Generator + func (gen *Generator) AddGeneratedMapping(generatedLine int, generatedCharacter core.UTF16Offset) error + func (gen *Generator) AddName(name string) NameIndex + func (gen *Generator) AddNamedSourceMapping(generatedLine int, generatedCharacter core.UTF16Offset, ...) error + func (gen *Generator) AddSource(fileName string) SourceIndex + func (gen *Generator) AddSourceMapping(generatedLine int, generatedCharacter core.UTF16Offset, ...) error + func (gen *Generator) RawSourceMap() *RawSourceMap + func (gen *Generator) SetSourceContent(sourceIndex SourceIndex, content string) error + func (gen *Generator) Sources() []string + func (gen *Generator) String() string + type Host interface + GetECMALineInfo func(fileName string) *ECMALineInfo + ReadFile func(fileName string) (string, bool) + UseCaseSensitiveFileNames func() bool + type MappedPosition struct + type Mapping struct + GeneratedCharacter core.UTF16Offset + GeneratedLine int + NameIndex NameIndex + SourceCharacter core.UTF16Offset + SourceIndex SourceIndex + SourceLine int + func (m *Mapping) Equals(other *Mapping) bool + func (m *Mapping) IsSourceMapping() bool + type MappingsDecoder struct + func DecodeMappings(mappings string) *MappingsDecoder + func (d *MappingsDecoder) Error() error + func (d *MappingsDecoder) MappingsString() string + func (d *MappingsDecoder) Next() (value *Mapping, done bool) + func (d *MappingsDecoder) Pos() int + func (d *MappingsDecoder) State() *Mapping + func (d *MappingsDecoder) Values() iter.Seq[*Mapping] + type NameIndex int + type RawSourceMap struct + File string + Mappings string + Names []string + SourceRoot string + Sources []string + SourcesContent []*string + Version int + type Source interface + ECMALineMap func() []core.TextPos + FileName func() string + Text func() string + type SourceIndex int + type SourceMappedPosition = MappedPosition