tools/go/ast/astutil
Rhys Hiltner af95c112ad go/ast/astutil: do not remove imports in AddNamedImport
When adding imports to an existing import declaration, ensure that
the target declaration will be printed with parentheses. This allows
all of the imported packages to be printed, not just the first one.

Fixes golang/go#17212

Change-Id: Ie5de5ec9bca6169650336ee2ea98334817e64e48
Reviewed-on: https://go-review.googlesource.com/29688
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-10-18 18:48:44 +00:00
..
enclosing.go go/ast/astutil: describe fewer CallExprs as "conversions" 2016-06-30 18:40:56 +00:00
enclosing_test.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00
imports.go go/ast/astutil: do not remove imports in AddNamedImport 2016-10-18 18:48:44 +00:00
imports_test.go go/ast/astutil: do not remove imports in AddNamedImport 2016-10-18 18:48:44 +00:00
util.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00