package aliases

Import Path
	golang.org/x/tools/internal/aliases (on go.dev)

Dependency Relation
	imports 4 packages, and imported by 3 packages

Involved Source Files aliases.go aliases_go122.go
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
Alias is an alias of types.Alias.
Package-Level Functions (total 5, in which 4 are exported)
Enabled reports whether [NewAlias] should create [types.Alias] types. This function is expensive! Call it sparingly.
NewAlias creates a new TypeName in Package pkg that is an alias for the type rhs. The enabled parameter determines whether the resulting [TypeName]'s type is an [types.Alias]. Its value must be the result of a call to [Enabled], which computes the effective value of GODEBUG=gotypesalias=... by invoking the type checker. The Enabled function is expensive and should be called once per task (e.g. package import), not once per call to NewAlias.
Rhs returns the type on the right-hand side of the alias declaration.
Unalias is a wrapper of types.Unalias.