When merging import declarations into a single block, AddNamedImport modifies the list of declarations in the provided file while iterating over the list. Take care to adjust the index into the list so as to not skip entries or fall off the end. Fixes golang/go#17213 Change-Id: I807246f762c965ea1fc51eb57759f6088336db86 Reviewed-on: https://go-review.googlesource.com/29681 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
---|---|---|
benchmark/parse | ||
blog | ||
cmd | ||
container/intsets | ||
cover | ||
go | ||
godoc | ||
imports | ||
oracle | ||
playground | ||
present | ||
refactor | ||
third_party | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
LICENSE | ||
PATENTS | ||
README | ||
codereview.cfg |
README
This subrepository holds the source for various packages and tools that support the Go programming language. Some of the tools, godoc and vet for example, are included in binary Go distributions. Others, including the Go oracle and the test coverage tool, can be fetched with "go get". Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs. To submit changes to this repository, see http://golang.org/doc/contribute.html.