mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 12:04:03 +00:00
reflect: set PkgPath in StructField
This commit is contained in:
+1
-4
@@ -594,10 +594,7 @@ func rawStructFieldFromPointer(fieldType *rawType, data unsafe.Pointer, flagsByt
|
|||||||
pkgPath := ""
|
pkgPath := ""
|
||||||
if flagsByte&structFieldFlagIsExported == 0 {
|
if flagsByte&structFieldFlagIsExported == 0 {
|
||||||
// This field is unexported.
|
// This field is unexported.
|
||||||
// TODO: list the real package path here. Storing it should not
|
pkgPath = fieldType.PkgPath()
|
||||||
// significantly impact binary size as there is only a limited
|
|
||||||
// number of packages in any program.
|
|
||||||
pkgPath = "<unimplemented>"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rawStructField{
|
return rawStructField{
|
||||||
|
|||||||
Reference in New Issue
Block a user