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

Method ImportedPackage

types/create.go:185–187  ·  view source on GitHub ↗

ImportedPackage returns the importable Package whose PkgPath is path, or nil if no such Package has been created. A parameter to CreatePackage determines whether a package should be considered importable. For example, no import declaration can resolve to the ad-hoc main package created by 'go build

(path string)

Source from the content-addressed store, hash-verified

183// SSA doesn't really need a string-keyed map of packages.
184//
185func (prog *Program) ImportedPackage(path string) *SSAPackage {
186 return prog.imported[path]
187}

Callers 4

TestBuildPackageFunction · 0.80
InterpretFunction · 0.80
initReflectFunction · 0.80
TestGoldenFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestBuildPackageFunction · 0.64
TestGoldenFunction · 0.64