Home | History | Annotate | Download | only in api

Lines Matching refs:Package

6 package main
163 // - Package "unsafe" contains special signatures requiring
227 // export emits the exported package features.
228 func (w *Walker) export(pkg *types.Package) {
349 current *types.Package
351 imported map[string]*types.Package // packages already imported
359 imported: map[string]*types.Package{"unsafe": types.Unsafe},
388 // The package cache doesn't operate correctly in rare (so far artificial)
394 pkgCache = map[string]*types.Package{} // map tagKey to package
402 // The tags list, which came from go/build's Package.AllTags,
426 // for a package that is in the process of being imported.
427 var importing types.Package
429 func (w *Walker) Import(name string) (*types.Package, error) {
433 log.Fatalf("cycle importing package %q", name)
444 // Determine package files.
487 // Parse package files.
492 log.Fatalf("error parsing package %s: %s", name, err)
497 // Type-check package files.
509 log.Fatalf("error typechecking package %s: %s (%s)", name, err, ctxt)
520 // pushScope enters a new scope (walking a package, type, node, etc)
786 // implementations are provided by the same package,