nodes

package
v0.0.0-...-c4feb0a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Abstract

type Abstract struct {
	ID      string   `json:"id"`
	Pos     string   `json:"pos"`
	Name    string   `json:"name"`
	File    int      `json:"file"`
	Pkg     int      `json:"pkg"`
	Comment string   `json:"comment"`
	Fields  []string `json:"fields"`
	// contains filtered or unexported fields
}

func NewAbstract

func NewAbstract(ident *ast.Ident, strtTyp *ast.StructType) *Abstract

func (*Abstract) Complete

func (a *Abstract) Complete()

type Callable

type Callable struct {
	ID          string   `json:"id"`
	Pos         string   `json:"pos"`
	Name        string   `json:"name"`
	Abstract    string   `json:"abstract"`
	File        int      `json:"file"`
	Pkg         int      `json:"pkg"`
	Typ         string   `json:"typ"`
	Comment     string   `json:"comment"`
	Syscalls    []string `json:"syscalls"`
	Parameters  []string `json:"parameters"`
	Results     []string `json:"results"`
	Description string   `json:"description"`
	Method      bool     `json:"method"`
	Private     bool     `json:"private"`
	Orphan      bool     `json:"orphan"`
	// contains filtered or unexported fields
}

func NewCallable

func NewCallable(decl *ast.FuncDecl) *Callable

func (*Callable) Complete

func (c *Callable) Complete()

type File

type File struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Path string `json:"path"`
	Pkg  int    `json:"pkg"`
	// contains filtered or unexported fields
}

func NewSourceFile

func NewSourceFile(sm *sourcecode.SourceMap, idx int, pkg *Pkg) File

func (*File) EnumerateDecls

func (f *File) EnumerateDecls()

func (*File) SearchCalls

func (f *File) SearchCalls()

type Pkg

type Pkg struct {
	ID   string `json:"id"`
	Path string `json:"path"`
	// contains filtered or unexported fields
}

func NewSourcePkg

func NewSourcePkg(sm *sourcecode.SourceMap, idx int) Pkg

func (*Pkg) Abstracts

func (p *Pkg) Abstracts() []*Abstract

func (*Pkg) Callables

func (p *Pkg) Callables() []*Callable

func (*Pkg) Calls

func (p *Pkg) Calls() []*callhierarchy.Call

Jump to

Keyboard shortcuts

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