1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:54:41 -07:00
go/go
Josh Bleecher Snyder 3f8aef80c8 go/ast/astutil: set Pos for import name
Failing to set this when adding a named import
to an existing block at the 0th position
caused the Lparen position to be set to zero.
As a result, the specs were printed as if
they were a single spec, not a group.
This made it appear as if imports had
been swallowed.

See CL 8663 for more context
and the original bug report.

CL 2050 fixed most similar cases
but missed this one.

Change-Id: Ic578fbb8040fa3d3d41db5bde2b839e394801608
Reviewed-on: https://go-review.googlesource.com/10252
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-05-19 23:10:16 +00:00
..
ast/astutil go/ast/astutil: set Pos for import name 2015-05-19 23:10:16 +00:00
buildutil go/buildutil: fix usage message for -tags flag 2015-05-08 14:48:23 +00:00
callgraph go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00
exact tools: add import comments. 2014-12-09 22:42:16 +00:00
gccgoimporter go/gccgoimporter: disable test case (fix build, at least partially) 2015-02-12 21:45:02 +00:00
gcimporter go/gcimporter: populate (*types.Package).Imports 2015-04-15 18:12:10 +00:00
importer tools: add import comments. 2014-12-09 22:42:16 +00:00
loader go/ssa: acquire TestEnclosingFunction from go/loader package. 2015-04-21 16:27:33 +00:00
pointer go/pointer: Remove a mention of the deleted ImportFromBinary option. 2015-04-29 01:29:12 +00:00
ssa go/ssa/interp: remove hash/crc32 from test suite, since it uses Examples 2015-05-12 17:41:59 +00:00
types go/gcimporter: populate (*types.Package).Imports 2015-04-15 18:12:10 +00:00
vcs go/vcs: fix bug in remote package discovery 2015-01-10 08:10:09 +00:00