package aliases
import "cuelang.org/go/internal/golangorgx/tools/aliases"
Index ¶
- func NewAlias(pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName
- func Unalias(t types.Type) types.Type
- type Alias
Functions ¶
func NewAlias ¶
NewAlias creates a new TypeName in Package pkg that is an alias for the type rhs.
When GoVersion>=1.22 and GODEBUG=gotypesalias=1, the Type() of the return value is a *types.Alias.
func Unalias ¶
Unalias is a wrapper of types.Unalias.
Types ¶
type Alias ¶
Alias is an alias of types.Alias.
Source Files ¶
aliases.go aliases_go122.go
- Version
- v0.12.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 8 hours ago –
Tools for package owners.