callgraph

package
v0.0.0-...-f707c88 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase() *Database

func (*Database) LoadPackagesInPath

func (db *Database) LoadPackagesInPath(p string) error

type DatabaseBuilder

type DatabaseBuilder struct {
	Dir              string
	IncludeTestFiles bool
	// contains filtered or unexported fields
}

func NewDatabaseBuilder

func NewDatabaseBuilder() *DatabaseBuilder

func (*DatabaseBuilder) Build

func (b *DatabaseBuilder) Build() error

type FuncInfo

type FuncInfo struct {
	PkgName      string
	ReceiverName string
	MethodName   string
	// contains filtered or unexported fields
}

func NewFuncInfoBySSAFunction

func NewFuncInfoBySSAFunction(fset *token.FileSet, f *ssa.Function) *FuncInfo

func NewFuncInfoBySSAMethod

func NewFuncInfoBySSAMethod(fset *token.FileSet, method *types.Func) (*FuncInfo, error)

func (*FuncInfo) GetFullName

func (info *FuncInfo) GetFullName() string

type InterfaceInfo

type InterfaceInfo struct {
	Pkg   *ssa.Package
	Name  string
	Iface *types.Interface
}

type InterfaceKey

type InterfaceKey struct {
	Pkg  *ssa.Package
	Name string
}

type InterfaceSet

type InterfaceSet struct {
	// contains filtered or unexported fields
}

func NewInterfaceSet

func NewInterfaceSet() *InterfaceSet

func (*InterfaceSet) Add

func (s *InterfaceSet) Add(pkg *ssa.Package, name string, v *types.Interface)

func (*InterfaceSet) FindByName

func (s *InterfaceSet) FindByName(name string) []InterfaceInfo

Jump to

Keyboard shortcuts

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