Documentation ¶
Index ¶
- type Packages
- func (p *Packages) FindPkgByPath(path string) *packages.Package
- func (p *Packages) ObjectOf(id *ast.Ident) types.Object
- func (p *Packages) TraverseDecls(c func(pkg *packages.Package, file *ast.File, decl ast.Decl) error) error
- func (p *Packages) TraverseObjects(c func(pkg *packages.Package, id *ast.Ident, obj types.Object) error) error
- func (p *Packages) TraverseTypes(c func(pkg *packages.Package, expr ast.Expr, value types.TypeAndValue) error) error
- func (p *Packages) TypeOf(e ast.Expr) types.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packages ¶
type Packages struct {
// contains filtered or unexported fields
}
func NewPackages ¶
func (*Packages) TraverseDecls ¶
func (*Packages) TraverseObjects ¶
func (*Packages) TraverseTypes ¶
Click to show internal directories.
Click to hide internal directories.