Home | History | Annotate | Download | only in api

Lines Matching refs:Package

6 package main
151 // - Package "unsafe" contains special signatures requiring
215 // export emits the exported package features.
216 func (w *Walker) export(pkg *types.Package) {
337 current *types.Package
339 imported map[string]*types.Package // packages already imported
347 imported: map[string]*types.Package{"unsafe": types.Unsafe},
376 // The package cache doesn't operate correctly in rare (so far artificial)
382 pkgCache = map[string]*types.Package{} // map tagKey to package
390 // The tags list, which came from go/build's Package.AllTags,
414 // for a package that is in the process of being imported.
415 var importing types.Package
417 func (w *Walker) Import(name string) (*types.Package, error) {
421 log.Fatalf("cycle importing package %q", name)
432 // Determine package files.
475 // Parse package files.
480 log.Fatalf("error parsing package %s: %s", name, err)
485 // Type-check package files.
497 log.Fatalf("error typechecking package %s: %s (%s)", name, err, ctxt)
508 // pushScope enters a new scope (walking a package, type, node, etc)
774 // implementations are provided by the same package,