mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
This CL adds an enum type, VarKind, that discriminates among the various kinds of Var, and adds setter/getter methods for Var's kind field. Beware: NewVar has a weaker postcondition: the Var objects it returns are not completely initialized and require a call to Var.SetKind. This should only affect importers. No changes are needed to the export data, since the kind can always be deduced from the context when decoding. See CL 645656 for the corresponding x/tools changes. + test, relnote, API Updates golang/go#70250 Change-Id: Icde86ad22a880cde6f50bc12bf38004a5c6a1025 Reviewed-on: https://go-review.googlesource.com/c/go/+/645115 Reviewed-by: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
17 lines
704 B
Plaintext
17 lines
704 B
Plaintext
pkg go/types, const FieldVar = 6 #70250
|
|
pkg go/types, const FieldVar VarKind #70250
|
|
pkg go/types, const LocalVar = 2 #70250
|
|
pkg go/types, const LocalVar VarKind #70250
|
|
pkg go/types, const PackageVar = 1 #70250
|
|
pkg go/types, const PackageVar VarKind #70250
|
|
pkg go/types, const ParamVar = 4 #70250
|
|
pkg go/types, const ParamVar VarKind #70250
|
|
pkg go/types, const RecvVar = 3 #70250
|
|
pkg go/types, const RecvVar VarKind #70250
|
|
pkg go/types, const ResultVar = 5 #70250
|
|
pkg go/types, const ResultVar VarKind #70250
|
|
pkg go/types, method (*Var) Kind() VarKind #70250
|
|
pkg go/types, method (*Var) SetKind(VarKind) #70250
|
|
pkg go/types, method (VarKind) String() string #70250
|
|
pkg go/types, type VarKind uint8 #70250
|