Documentation ¶
Index ¶
- func Filename(pkg *packages.Package, file *ast.File) string
- func Inspect(pkg *packages.Package, file *ast.File, v Visitor) error
- func Load(ctx context.Context, pkgNames ...string) ([]*packages.Package, error)
- func Position(pkg *packages.Package, node ast.Node) token.Position
- func Write(pkg *packages.Package, file *ast.File) error
- type PackageFunctionCall
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PackageFunctionCall ¶ added in v0.4.1
type PackageFunctionCall struct { Position token.Position Call *ast.CallExpr TargetPkg *ast.Ident TargetPkgName *types.PkgName TargetFun *ast.SelectorExpr TypesInfo *types.Info }
func (*PackageFunctionCall) Args ¶ added in v0.4.1
func (call *PackageFunctionCall) Args() []ast.Expr
func (*PackageFunctionCall) FunctionName ¶ added in v0.4.1
func (call *PackageFunctionCall) FunctionName() string
func (*PackageFunctionCall) PackagePath ¶ added in v0.4.1
func (call *PackageFunctionCall) PackagePath() string
func (*PackageFunctionCall) SetArgs ¶ added in v0.4.1
func (call *PackageFunctionCall) SetArgs(args []ast.Expr)
type Visitor ¶
type Visitor interface {
PackageFunctionCall(call PackageFunctionCall) error
}
Click to show internal directories.
Click to hide internal directories.