sourcemap

package module
v0.0.0-...-2833bce Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: BSD-2-Clause Imports: 5 Imported by: 84

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"`
	Names      []string `json:"names"`
	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