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: 56 modules, 88 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址