tools/go/ast/astutil
David R. Jenni e852fdd89f go/ast/astutil: add function DeleteNamedImport.
DeleteNamedImport deletes the import with a given
name and path from a parsed file, if present.

imports uses this function to delete named imports.

Fixes golang/go#8149.

Change-Id: I84539d5627191c45f06db2d008507aee4d3b1eb2
Reviewed-on: https://go-review.googlesource.com/19951
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-02-26 17:37:10 +00:00
..
enclosing.go cmd/guru: don't panic on *ast.Bad{Decl,Stmt,Expr} 2016-02-15 21:39: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: add function DeleteNamedImport. 2016-02-26 17:37:10 +00:00
imports_test.go go/ast/astutil: add function DeleteNamedImport. 2016-02-26 17:37:10 +00:00
util.go astutil: move to go/ast/astutil 2015-01-13 15:47:47 +00:00