Source File
typeparams.go
Belonging Package
golang.org/x/exp/typeparams
// Copyright 2021 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.package typeparamsimport ()// IndexListExpr is an alias for ast.IndexListExpr.//// Deprecated: Use [go/ast.IndexListExpr] instead.////go:fix inlinetype IndexListExpr = ast.IndexListExpr// ForTypeSpec returns n.TypeParams.func ( *ast.TypeSpec) *ast.FieldList {if == nil {return nil}return .TypeParams}// ForFuncType returns n.TypeParams.func ( *ast.FuncType) *ast.FieldList {if == nil {return nil}return .TypeParams}// TypeParam is an alias for types.TypeParam//// Deprecated: Use [go/types.TypeParam] instead.////go:fix inlinetype TypeParam = types.TypeParam// TypeParamList is an alias for types.TypeParamList//// Deprecated: Use [go/types.TypeParamList] instead.////go:fix inlinetype TypeParamList = types.TypeParamList// TypeList is an alias for types.TypeList//// Deprecated: Use [go/types.TypeList] instead.////go:fix inlinetype TypeList = types.TypeList// NewTypeParam calls types.NewTypeParam.//// Deprecated: Use [go/types.NewTypeParam] instead.////go:fix inlinefunc ( *types.TypeName, types.Type) *TypeParam {return types.NewTypeParam(, )}// NewSignatureType calls types.NewSignatureType.//// Deprecated: Use [go/types.NewSignatureType] instead.////go:fix inlinefunc ( *types.Var, , []*TypeParam, , *types.Tuple, bool) *types.Signature {return types.NewSignatureType(, , , , , )}// ForSignature returns sig.TypeParams()//// Deprecated: Use sig.TypeParams() instead.////go:fix inlinefunc ( *types.Signature) *TypeParamList {return .TypeParams()}// RecvTypeParams returns sig.RecvTypeParams().//// Deprecated: Use sig.RecvTypeParams() instead.////go:fix inlinefunc ( *types.Signature) *TypeParamList {return .RecvTypeParams()}// IsComparable calls iface.IsComparable().//// Deprecated: Use iface.IsComparable() instead.////go:fix inlinefunc ( *types.Interface) bool {return .IsComparable()}// IsMethodSet calls iface.IsMethodSet().//// Deprecated: Use iface.IsMethodSet() instead.////go:fix inlinefunc ( *types.Interface) bool {return .IsMethodSet()}// IsImplicit calls iface.IsImplicit().//// Deprecated: Use iface.IsImplicit() instead.////go:fix inlinefunc ( *types.Interface) bool {return .IsImplicit()}// MarkImplicit calls iface.MarkImplicit().//// Deprecated: Use iface.MarkImplicit() instead.////go:fix inlinefunc ( *types.Interface) {.MarkImplicit()}// ForNamed extracts the (possibly empty) type parameter object list from// named.//// Deprecated: Use named.TypeParams() instead.////go:fix inlinefunc ( *types.Named) *TypeParamList {return .TypeParams()}// SetForNamed sets the type params tparams on n. Each tparam must be of// dynamic type *types.TypeParam.//// Deprecated: Use n.SetTypeParams(...) instead.////go:fix inlinefunc ( *types.Named, []*TypeParam) {.SetTypeParams()}// NamedTypeArgs returns named.TypeArgs().//// Deprecated: Use named.TypeArgs() instead.////go:fix inlinefunc ( *types.Named) *TypeList {return .TypeArgs()}// NamedTypeOrigin returns named.Orig().//// Deprecated: Use named.Origin() instead.////go:fix inlinefunc ( *types.Named) types.Type {return .Origin()}// Term is an alias for types.Term.//// Deprecated: Use [go/types.Term] instead.////go:fix inlinetype Term = types.Term// NewTerm calls types.NewTerm.//// Deprecated: Use [go/types.NewTerm] instead.////go:fix inlinefunc ( bool, types.Type) *Term {return types.NewTerm(, )}// Union is an alias for types.Union//// Deprecated: Use [go/types.Union] instead.////go:fix inlinetype Union = types.Union// NewUnion calls types.NewUnion.//// Deprecated: Use [go/types.NewUnion] instead.////go:fix inlinefunc ( []*Term) *Union {return types.NewUnion()}// InitInstances initializes info to record information about type and function// instances.//// Deprecated: Use info.Instances = make(...) instead.////go:fix inlinefunc ( *types.Info) {.Instances = make(map[*ast.Ident]types.Instance)}// Instance is an alias for types.Instance.//// Deprecated: Use [go/types.Instance] instead.////go:fix inlinetype Instance = types.Instance// GetInstances returns info.Instances.//// Deprecated: Use info.Instances instead.////go:fix inlinefunc ( *types.Info) map[*ast.Ident]Instance {return .Instances}// Context is an alias for types.Context.//// Deprecated: Use [go/types.Context] instead.////go:fix inlinetype Context = types.Context// NewContext calls types.NewContext.//// Deprecated: Use [go/types.NewContext] instead.////go:fix inlinefunc () *Context {return types.NewContext()}// Instantiate calls types.Instantiate.//// Deprecated: Use [go/types.Instantiate] instead.////go:fix inlinefunc ( *Context, types.Type, []types.Type, bool) (types.Type, error) {return types.Instantiate(, , , )}
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)