| 1 | // Copyright 2024 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build go1.25 |
| 6 | |
| 7 | package typesinternal |
| 8 | |
| 9 | import "go/types" |
| 10 | |
| 11 | type VarKind = types.VarKind |
| 12 | |
| 13 | const ( |
| 14 | PackageVar = types.PackageVar |
| 15 | LocalVar = types.LocalVar |
| 16 | RecvVar = types.RecvVar |
| 17 | ParamVar = types.ParamVar |
| 18 | ResultVar = types.ResultVar |
| 19 | FieldVar = types.FieldVar |
| 20 | ) |
| 21 | |
| 22 | func GetVarKind(v *types.Var) VarKind { return v.Kind() } |
| 23 | func SetVarKind(v *types.Var, kind VarKind) { v.SetKind(kind) } |