mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
reflect: move StructField.Anonymous field to match upstream location
This commit is contained in:
+2
-2
@@ -974,9 +974,9 @@ type StructField struct {
|
||||
|
||||
Type Type
|
||||
Tag StructTag // field tag string
|
||||
Anonymous bool
|
||||
Offset uintptr
|
||||
Index []int // index sequence for Type.FieldByIndex
|
||||
Anonymous bool
|
||||
}
|
||||
|
||||
// IsExported reports whether the field is exported.
|
||||
@@ -992,8 +992,8 @@ type rawStructField struct {
|
||||
PkgPath string
|
||||
Type *rawType
|
||||
Tag StructTag
|
||||
Anonymous bool
|
||||
Offset uintptr
|
||||
Anonymous bool
|
||||
}
|
||||
|
||||
// A StructTag is the tag string in a struct field.
|
||||
|
||||
Reference in New Issue
Block a user