tools/go/loader
Alan Donovan e3dc58c6e0 go.tools/go/loader: use the build.Context's I/O hooks, if any.
Also, add loader.Config.DisplayPath hook, which allows the
filename returned by build.Context.Import() to be transformed
prior to attaching to the AST.  This allows a virtual file
system to be used without leaking into the user interface.

Eliminate parsePackageFiles hook; I don't think we need it any
more.  The test that was using it has been rewritten to use
the build.Context hooks.

LGTM=gri
R=gri, crawshaw
CC=daniel.morsing, golang-codereviews, rsc
https://golang.org/cl/75520046
2014-03-14 16:17:53 -04:00
..
testdata go.tools: rename packages. 2014-01-16 09:33:58 -05:00
importer_test.go go.tools/go/loader: use the build.Context's I/O hooks, if any. 2014-03-14 16:17:53 -04:00
loader.go go.tools/go/loader: use the build.Context's I/O hooks, if any. 2014-03-14 16:17:53 -04:00
pkginfo.go go.tools/go/loader: allow loading of multiple test packages. 2014-03-11 15:41:57 -04:00
source_test.go go.tools/go/ssa: name anon funcs by their enclosing func. 2014-02-28 10:18:55 -05:00
stdlib_test.go go.tools/go/loader: fix broken test. 2014-03-11 17:04:45 -04:00
util.go go.tools/go/loader: use the build.Context's I/O hooks, if any. 2014-03-14 16:17:53 -04:00