1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:46:11 -07:00
go/oracle/testdata/src
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
..
lib go.tools/oracle: an oracle that answers questions about Go source code. 2013-08-27 17:58:26 -04:00
main go.tools/go/ssa: improve printing of anonymous functions. 2014-07-31 17:37:41 -04:00