impl

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectTypeNames

func CollectTypeNames(ps *def.PackageSpec) maps.Set[rtu.ParsedName]

func FindPkgDefCalls

func FindPkgDefCalls(fil *ast.File, ti *types.Info) []*ast.CallExpr

func FindPkgDefFuncs

func FindPkgDefFuncs(fil *ast.File, ti *types.Info) []*ast.FuncDecl

func ReifyDef

func ReifyDef(node ast.Node, ti *types.Info) any

func ReifyFunc

func ReifyFunc(node ast.Node, ti *types.Info) any

func Run

func Run(cwd string) string

Types

type FileGen

type FileGen struct {
	// contains filtered or unexported fields
}

func NewFileGen

func NewFileGen(
	mod *modfile.File,
	pkg *packages.Package,
	ps *def.PackageSpec,
) *FileGen

func (*FileGen) Gen

func (fg *FileGen) Gen() string

type FuncDecl

type FuncDecl struct {
	Name string
	Decl *ast.FuncDecl
	File *ast.File
}

type ParsedPackages

type ParsedPackages struct {
	Mod  *modfile.File
	Pkgs []*packages.Package
}

func ParsePackages

func ParsePackages(cd string) ParsedPackages

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func (*Resolver) FuncDecl

func (r *Resolver) FuncDecl(n string) *FuncDecl

Jump to

Keyboard shortcuts

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