1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:44:40 -07:00
go/go
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
..
callgraph go.tools: various comments + doc tweaks. 2014-03-11 18:24:39 -04:00
exact go.tools/go/types: report correctly rounded constant values 2014-03-05 10:23:33 -08:00
gccgoimporter go.tools/go/*: fix breakage caused by removal of types.NewPackage parameter. 2014-02-20 20:11:00 -05:00
gcimporter go.tools/go/types: internal cleanups 2014-02-20 14:52:21 -08:00
importer go.tools/go/types: report correctly rounded constant values 2014-03-05 10:23:33 -08:00
loader go.tools/go/loader: use the build.Context's I/O hooks, if any. 2014-03-14 16:17:53 -04:00
pointer go.tools/go/pointer: node renumbering 2014-03-11 18:37:19 -04:00
ssa go.tools: various comments + doc tweaks. 2014-03-11 18:24:39 -04:00
types go.tools/go/types: correct a comment (was pointing at wrong issue) 2014-03-14 10:34:06 -07:00
vcs go.tools/vcs: allow compilation with go 1.0 2013-10-04 11:46:57 +10:00