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.

It must be safe to call concurrently from multiple goroutines.

PackageCreated is referenced in 0 repositories