tools/go
Robert Griesemer c4ca0e2489 go.tools/go/types: don't change dot-imported object's parents
With this CL, an Object.Parent() Scope is always the scope in
which the object was originally declared. For dot-imported
objects, that is the package scope of the package from which
the objects are imported (not the file scope into which they
are imported).

Also:

- Changed Scope.Insert to be agnostic regarding blank
identifiers - blank identifiers must be handled outside.

- Fixed handling of blank labels: they are never declared.

Fixes golang/go#7537.

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/75570043
2014-03-13 13:22:44 -07: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: fix broken test. 2014-03-11 17:04:45 -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: don't change dot-imported object's parents 2014-03-13 13:22:44 -07:00
vcs go.tools/vcs: allow compilation with go 1.0 2013-10-04 11:46:57 +10:00