sourcemap

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

https://github.com/neelance/sourcemap 改造

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	Version        int      `json:"version"`
	File           string   `json:"file,omitempty"`
	SourceRoot     string   `json:"sourceRoot,omitempty"`
	Sources        []string `json:"sources"`
	SourcesContent []string `json:"sourcesContent,omitempty"`
	Names          []string `json:"names,omitempty"`
	Mappings       string   `json:"mappings"`
	// contains filtered or unexported fields
}

func ReadFrom

func ReadFrom(r io.Reader) (*Map, error)

func (*Map) AddMapping

func (m *Map) AddMapping(mapping *Mapping)

func (*Map) ClearMappings

func (m *Map) ClearMappings()

func (*Map) DecodedMappings

func (m *Map) DecodedMappings() []*Mapping

func (*Map) EncodeMappings

func (m *Map) EncodeMappings()

func (*Map) Len

func (m *Map) Len() int

func (*Map) Less

func (m *Map) Less(i, j int) bool

func (*Map) Swap

func (m *Map) Swap(i, j int)

func (*Map) WriteTo

func (m *Map) WriteTo(w io.Writer) error

type Mapping

type Mapping struct {
	GeneratedLine   int
	GeneratedColumn int
	OriginalFile    string
	OriginalLine    int
	OriginalColumn  int
	OriginalName    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL