// 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 typeparams

import (
	
	
)

// IndexListExpr is an alias for ast.IndexListExpr.
//
// Deprecated: Use [go/ast.IndexListExpr] instead.
//
//go:fix inline
type 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 inline
type TypeParam = types.TypeParam

// TypeParamList is an alias for types.TypeParamList
//
// Deprecated: Use [go/types.TypeParamList] instead.
//
//go:fix inline
type TypeParamList = types.TypeParamList

// TypeList is an alias for types.TypeList
//
// Deprecated: Use [go/types.TypeList] instead.
//
//go:fix inline
type TypeList = types.TypeList

// NewTypeParam calls types.NewTypeParam.
//
// Deprecated: Use [go/types.NewTypeParam] instead.
//
//go:fix inline
func ( *types.TypeName,  types.Type) *TypeParam {
	return types.NewTypeParam(, )
}

// NewSignatureType calls types.NewSignatureType.
//
// Deprecated: Use [go/types.NewSignatureType] instead.
//
//go:fix inline
func ( *types.Var, ,  []*TypeParam, ,  *types.Tuple,  bool) *types.Signature {
	return types.NewSignatureType(, , , , , )
}

// ForSignature returns sig.TypeParams()
//
// Deprecated: Use sig.TypeParams() instead.
//
//go:fix inline
func ( *types.Signature) *TypeParamList {
	return .TypeParams()
}

// RecvTypeParams returns sig.RecvTypeParams().
//
// Deprecated: Use sig.RecvTypeParams() instead.
//
//go:fix inline
func ( *types.Signature) *TypeParamList {
	return .RecvTypeParams()
}

// IsComparable calls iface.IsComparable().
//
// Deprecated: Use iface.IsComparable() instead.
//
//go:fix inline
func ( *types.Interface) bool {
	return .IsComparable()
}

// IsMethodSet calls iface.IsMethodSet().
//
// Deprecated: Use iface.IsMethodSet() instead.
//
//go:fix inline
func ( *types.Interface) bool {
	return .IsMethodSet()
}

// IsImplicit calls iface.IsImplicit().
//
// Deprecated: Use iface.IsImplicit() instead.
//
//go:fix inline
func ( *types.Interface) bool {
	return .IsImplicit()
}

// MarkImplicit calls iface.MarkImplicit().
//
// Deprecated: Use iface.MarkImplicit() instead.
//
//go:fix inline
func ( *types.Interface) {
	.MarkImplicit()
}

// ForNamed extracts the (possibly empty) type parameter object list from
// named.
//
// Deprecated: Use named.TypeParams() instead.
//
//go:fix inline
func ( *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 inline
func ( *types.Named,  []*TypeParam) {
	.SetTypeParams()
}

// NamedTypeArgs returns named.TypeArgs().
//
// Deprecated: Use named.TypeArgs() instead.
//
//go:fix inline
func ( *types.Named) *TypeList {
	return .TypeArgs()
}

// NamedTypeOrigin returns named.Orig().
//
// Deprecated: Use named.Origin() instead.
//
//go:fix inline
func ( *types.Named) types.Type {
	return .Origin()
}

// Term is an alias for types.Term.
//
// Deprecated: Use [go/types.Term] instead.
//
//go:fix inline
type Term = types.Term

// NewTerm calls types.NewTerm.
//
// Deprecated: Use [go/types.NewTerm] instead.
//
//go:fix inline
func ( bool,  types.Type) *Term {
	return types.NewTerm(, )
}

// Union is an alias for types.Union
//
// Deprecated: Use [go/types.Union] instead.
//
//go:fix inline
type Union = types.Union

// NewUnion calls types.NewUnion.
//
// Deprecated: Use [go/types.NewUnion] instead.
//
//go:fix inline
func ( []*Term) *Union {
	return types.NewUnion()
}

// InitInstances initializes info to record information about type and function
// instances.
//
// Deprecated: Use info.Instances = make(...) instead.
//
//go:fix inline
func ( *types.Info) {
	.Instances = make(map[*ast.Ident]types.Instance)
}

// Instance is an alias for types.Instance.
//
// Deprecated: Use [go/types.Instance] instead.
//
//go:fix inline
type Instance = types.Instance

// GetInstances returns info.Instances.
//
// Deprecated: Use info.Instances instead.
//
//go:fix inline
func ( *types.Info) map[*ast.Ident]Instance {
	return .Instances
}

// Context is an alias for types.Context.
//
// Deprecated: Use [go/types.Context] instead.
//
//go:fix inline
type Context = types.Context

// NewContext calls types.NewContext.
//
// Deprecated: Use [go/types.NewContext] instead.
//
//go:fix inline
func () *Context {
	return types.NewContext()
}

// Instantiate calls types.Instantiate.
//
// Deprecated: Use [go/types.Instantiate] instead.
//
//go:fix inline
func ( *Context,  types.Type,  []types.Type,  bool) (types.Type, error) {
	return types.Instantiate(, , , )
}