Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceMap ¶
type SourceMap 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"`
// Decoded mapping results
LineToPc map[int][]int
PcToLine map[int]int
}
SourceMap provides a mapping of the source to assembled program
func DecodeSourceMap ¶
DecodeSourceMap decodes a source map
func (*SourceMap) GetLineForPc ¶
GetLineForPc returns the line number for the given pc
func (*SourceMap) GetPcsForLine ¶
GetPcsForLine returns the program counter for the given line
Click to show internal directories.
Click to hide internal directories.