Documentation
¶
Index ¶
- func CopyFuncDeclsAsDecl(funcDecls []*ast.FuncDecl) (newFuncDecls []ast.Decl)
- func ExtractObjectsFromFuncDeclRecursive(pkgs map[string]*packages.Package, f *types.Func, objects []types.Object) ([]types.Object, error)
- func GenDeclToDecl(genDecls []*ast.GenDecl) (decls []ast.Decl)
- func SortFuncDeclsFromDecls(decls []ast.Decl) []ast.Decl
- func SortGenDecls(genDecls []*ast.GenDecl)
- type Packages
- type Program
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFuncDeclsAsDecl ¶
func SortGenDecls ¶
Types ¶
type Packages ¶
func NewPackages ¶
func (*Packages) FindDeclByObject ¶
func (*Packages) FindPkgByName ¶
type Program ¶
type Program struct { Packages *Packages Objects []types.Object Decls []ast.Decl ImportObjects []types.Object Imports []*ast.GenDecl ConstObjects []types.Object Const *ast.GenDecl TypeObjects []types.Object Types []*ast.GenDecl VarObjects []types.Object Vars []*ast.GenDecl FuncObjects []types.Object Funcs []*ast.FuncDecl }
Click to show internal directories.
Click to hide internal directories.