Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetModulePath ¶
Types ¶
type Directory ¶
func GetProfilesTree ¶
type FuncExtent ¶
FuncExtent describes a function's extent in the source by file and position.
func FindFuncs ¶
func FindFuncs(name string) ([]*FuncExtent, error)
FindFuncs parses the file and returns a slice of FuncExtent descriptors.
type FuncVisitor ¶
type FuncVisitor struct { FSet *token.FileSet Name string // Name of file. AstFile *ast.File Funcs []*FuncExtent }
FuncVisitor implements the visitor that builds the function position list for a file.
Click to show internal directories.
Click to hide internal directories.