tools/go/gcimporter
Robert Griesemer df08273253 go.tools/gcimporter: use imported package info for anonymous fields
The package of a struct field is independent of the type of the
struct field - the old code was technically not correct. That said,
it does not seem possible (or very difficult) to create a test case
because for exported anonymous fields that field package doesn't matter
(it's not needed for name identity), and non-exported anonymous fields
cannot be accessed from an imported package.

R=adonovan
CC=golang-codereviews
https://golang.org/cl/47560043
2014-01-03 11:37:20 -08:00
..
testdata go.tools/go/types: move gcimporter to its own package 2013-11-14 14:11:43 -08:00
exportdata.go go.tools/go/gcimporter: adjust for new .a file format 2013-12-18 10:53:59 -08:00
gcimporter.go go.tools/gcimporter: use imported package info for anonymous fields 2014-01-03 11:37:20 -08:00
gcimporter_test.go go.tools/gc/importer: fix struct tags and parameter names 2013-12-20 15:17:16 -08:00