logic

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 3 Imported by: 1

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

func DecodeSourceMap(ism map[string]interface{}) (SourceMap, error)

func (*SourceMap) GetLineForPc

func (s *SourceMap) GetLineForPc(pc int) (int, bool)

func (*SourceMap) GetPcsForLine

func (s *SourceMap) GetPcsForLine(line int) []int

Jump to

Keyboard shortcuts

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