MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / AllPackages

Method AllPackages

types/create.go:163–169  ·  view source on GitHub ↗

AllPackages returns a new slice containing all packages in the program prog in unspecified order.

()

Source from the content-addressed store, hash-verified

161// program prog in unspecified order.
162//
163func (prog *Program) AllPackages() []*SSAPackage {
164 pkgs := make([]*SSAPackage, 0, len(prog.packages))
165 for _, pkg := range prog.packages {
166 pkgs = append(pkgs, pkg)
167 }
168 return pkgs
169}
170
171// ImportedPackage returns the importable Package whose PkgPath
172// is path, or nil if no such Package has been created.

Callers 6

TestBuildPackageFunction · 0.80
TestStdlibSSAFunction · 0.80
TestStdlibFunction · 0.80
programMethod · 0.80
InterpretFunction · 0.80
TestGoldenFunction · 0.80

Calls 1

appendFunction · 0.50

Tested by 4

TestBuildPackageFunction · 0.64
TestStdlibSSAFunction · 0.64
TestStdlibFunction · 0.64
TestGoldenFunction · 0.64