packages

package
v3.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 NewPackages(pkgs []*packages.Package) *Packages

func (*Packages) FindPkgByPath

func (p *Packages) FindPkgByPath(path string) *packages.Package

func (*Packages) ObjectOf

func (p *Packages) ObjectOf(id *ast.Ident) types.Object

func (*Packages) TraverseDecls

func (p *Packages) TraverseDecls(c func(pkg *packages.Package, file *ast.File, decl ast.Decl) error) error

func (*Packages) TraverseObjects

func (p *Packages) TraverseObjects(c func(pkg *packages.Package, id *ast.Ident, obj types.Object) error) error

func (*Packages) TraverseTypes

func (p *Packages) TraverseTypes(c func(pkg *packages.Package, expr ast.Expr, value types.TypeAndValue) error) error

func (*Packages) TypeOf

func (p *Packages) TypeOf(e ast.Expr) types.Type

Jump to

Keyboard shortcuts

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