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)
| 183 | // SSA doesn't really need a string-keyed map of packages. |
| 184 | // |
| 185 | func (prog *Program) ImportedPackage(path string) *SSAPackage { |
| 186 | return prog.imported[path] |
| 187 | } |
no outgoing calls