mirror of
https://github.com/luxfi/kms.git
synced 2026-11-03 08:42:32 +00:00
Squashes all pre-rewrite history into a single root commit. Previous tree: - 14506 commits including upstream Infisical fork history - Multiple merge chains carrying pre-purge content Force-rewrite per disk-space reclamation discipline. GHCR images (1.9.9, 1.9.11) remain immutable; their git lineage is no longer materialized.
19 lines
531 B
Go
19 lines
531 B
Go
// Copyright 2024 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 aliases
|
|
|
|
import (
|
|
"go/token"
|
|
"go/types"
|
|
)
|
|
|
|
// New creates a new TypeName in Package pkg that
|
|
// is an alias for the type rhs.
|
|
func New(pos token.Pos, pkg *types.Package, name string, rhs types.Type, tparams []*types.TypeParam) *types.TypeName {
|
|
tname := types.NewTypeName(pos, pkg, name, nil)
|
|
types.NewAlias(tname, rhs).SetTypeParams(tparams)
|
|
return tname
|
|
}
|