tools/go/loader
Alan Donovan 0dcaae1610 go.tools/go/loader: permit Create* methods to specify the ad-hoc package's path
CL 49530047 made the (over-)simplifying assumption that the
Path of an ad-hoc (Created) package should default to its
Name, i.e. package declaration.

With this change, the Name is still always computed from the
package declaration (by go/types) but the Path may be
specified by the loader.Config.  If "", the value of the Name
is used, which is not globally unique.

R=gri, axwalk
CC=golang-codereviews
https://golang.org/cl/55180043
2014-01-22 09:59:19 -05:00
..
testdata go.tools: rename packages. 2014-01-16 09:33:58 -05:00
importer_test.go go.tools/go/loader: add missing argument to fmt.Errorf call 2014-01-16 13:20:02 -08:00
loader.go go.tools/go/loader: permit Create* methods to specify the ad-hoc package's path 2014-01-22 09:59:19 -05:00
pkginfo.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00
source_test.go go.tools/go/loader: permit Create* methods to specify the ad-hoc package's path 2014-01-22 09:59:19 -05:00
util.go go.tools/go/loader: permit Create* methods to specify the ad-hoc package's path 2014-01-22 09:59:19 -05:00