stack_model

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncInfo

type FuncInfo struct {
	// FullName string
	Kind     FuncKind
	Pkg      string
	Name     string
	RecvType string
	RecvPtr  bool

	// interface method?
	Interface bool
	Generic   bool
	Closure   bool
	Stdlib    bool

	File string
	Line int

	RecvName string
	ArgNames []string
	ResNames []string

	// is first argument ctx
	FirstArgCtx bool
	// last result error
	LastResultErr bool
}

type FuncKind

type FuncKind string
const (
	FuncKind_Func   FuncKind = "func"
	FuncKind_Var    FuncKind = "var"
	FuncKind_VarPtr FuncKind = "var_ptr"
	FuncKind_Const  FuncKind = "const"
)

type IStack

type IStack interface {
	Data() *Stack
	JSON() ([]byte, error)
}

type Stack

type Stack struct {
	Format   string
	Begin    string
	Children []*StackEntry
}

type StackEntry

type StackEntry struct {
	FuncInfo *FuncInfo

	BeginNs int64 // ns
	EndNs   int64 // ns

	Args    interface{}
	Results interface{}

	Panic bool
	// optional line info for panic
	PanicLine int
	Error     string

	Children []*StackEntry
}

Jump to

Keyboard shortcuts

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