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
type Call ¶
type Call struct { ID string `json:"id"` Caller int `json:"caller"` Callee int `json:"callee"` File int `json:"file"` Typ string `json:"typ"` Signature string `json:"signature"` // contains filtered or unexported fields }
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 ¶
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 (*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 (*Pkg) AbstractDefinition ¶
func (*Pkg) CallableDefinition ¶
type Project ¶
type Project struct { Pkgs []Pkg `json:"pkgs"` Files []File `json:"files"` Abstracts []*Abstract `json:"abstracts"` Callables []*Callable `json:"callables"` Calls []*Call `json:"calls"` // contains filtered or unexported fields }
func NewProject ¶
func (*Project) Initialize ¶
func (p *Project) Initialize()
scan the whole project to get the directories and files
type SourceFile ¶
func (*SourceFile) Parse2AST ¶
func (sf *SourceFile) Parse2AST(fset *token.FileSet)
type SourceMap ¶
type SourceMap struct {
// contains filtered or unexported fields
}
read-only source map of the project
func NewSourceMap ¶
func (*SourceMap) Files ¶
func (sm *SourceMap) Files() []*SourceFile
Click to show internal directories.
Click to hide internal directories.