tools/go/loader
Alan Donovan 4228ee8063 go.tools/go/ssa: improve printing of anonymous functions.
Examples:
- "foo$1" becomes "pkg.foo$1"
- "init$1" (meaning the first declared "init" function) becomes "init#1",
   to distinguish it from "init$1" (meaning the first anonymous function
   within the synthetic "init" function that initializes package-level vars).

It is now an invariant that all source-level (non-synthetic)
functions have distinct names, and that all names include the
enclosing package.  Added test for this.

+ updated various clients.

LGTM=gri
R=gri
CC=golang-codereviews
https://golang.org/cl/122750043
2014-07-31 17:37:41 -04:00
..
testdata go.tools: rename packages. 2014-01-16 09:33:58 -05:00
cgo.go go.tools/go/loader: apply DisplayPath to working directory of cgo tool. 2014-07-24 14:12:52 -04:00
importer_test.go go/loader: make (*Config).Load() robust against I/O, scanner and parser errors. 2014-06-13 11:32:46 -04:00
loader.go go.tools/go/loader: apply DisplayPath to working directory of cgo tool. 2014-07-24 14:12:52 -04:00
source_test.go go.tools/go/ssa: improve printing of anonymous functions. 2014-07-31 17:37:41 -04:00
stdlib_test.go go.tools/go/loader: fix Solaris build 2014-06-24 20:47:16 +10:00
util.go go/loader: make (*Config).Load() robust against I/O, scanner and parser errors. 2014-06-13 11:32:46 -04:00