PackageCreated is a hook called when a types.Package is created but before it has been populated. The package's import Path() and Scope() are defined, but not its Name() since no package declaration has been seen yet. Clients may use this to insert synthetic items into the package scope, for example. Change-Id: I210a0c4c766f03f715f03f26d5cd765f15f56e04 Reviewed-on: https://go-review.googlesource.com/2138 Reviewed-by: Alan Donovan <adonovan@google.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| cgo.go | ||
| loader.go | ||
| loader_test.go | ||
| source_test.go | ||
| stdlib_test.go | ||
| util.go | ||