PackageInfo holds the ASTs and facts derived by the type-checker for a single package.
Not mutated once exposed via the API.
// Created[i] contains the initial package whose ASTs were // supplied by Config.CreatePkgs[i]. Created *PackageInfo // Imported contains the initially imported packages,
// Imported contains the initially imported packages, // as specified by Config.ImportPkgs. Imported map[string]*PackageInfo // ImportMap is the canonical mapping of import paths to
// encountered by Load: all initial packages and all // dependencies, including incomplete ones. AllPackages map[*types.Package]*PackageInfo }