nav

package
v0.0.0-...-aad6f81 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebuggerPos

type DebuggerPos struct {
	File string
	Line int
}

type File

type File struct {
	Name        string
	Path        string
	Content     string
	LineCount   int
	LineIndices []int
	PackageName string // TODO
}
type Nav struct {

	// Project level
	SourceFiles []string
	ProjectPath string
	FileCache   map[string]*File
	Goroutines  []*api.Goroutine

	Breakpoints map[string]map[int]*UiBreakpoint

	CurrentFile        *File
	CurrentLines       map[string]int
	CurrentDebuggerPos DebuggerPos

	DbgState          *api.DebuggerState
	CurrentStack      []api.Stackframe
	CurrentStackFrame *api.Stackframe
}

Represents state of navigation within the project directory and the debugger.

func NewNav

func NewNav(projectPath string) Nav
func (nav *Nav) ChangeCurrentFile(file *File)
func (nav *Nav) CurrentLine() int
func (nav *Nav) GetAllBreakpoints() []*UiBreakpoint
func (nav *Nav) LineInFile(filePath string) int
func (nav *Nav) SetLine(line int) int

type UiBreakpoint

type UiBreakpoint struct {
	Disabled bool
	*api.Breakpoint
}

Jump to

Keyboard shortcuts

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