package aliases

import "cuelang.org/go/internal/golangorgx/tools/aliases"

Index

Functions

func NewAlias

func NewAlias(pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName

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

func Unalias(t types.Type) types.Type

Unalias is a wrapper of types.Unalias.

Types

type Alias

type Alias = types.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.