tools/go
Josh Bleecher Snyder 57d2ff39c7 go/ast/astutil: match prefix segments when adding imports
AddImport and AddNamedImport attempt to place new
imports in roughly the correct place--and thus the
correct group--by matching prefixes. Matching prefixes
byte-by-byte led to "regexp" being grouped with "rsc.io/p".
Instead, match prefixes by segments.

Fixes golang/go#9961.

Change-Id: I52b7c58a9a2fbe85c2b5297e50c87d409364bda3
Reviewed-on: https://go-review.googlesource.com/8090
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-03-30 17:57:25 +00:00
..
ast/astutil go/ast/astutil: match prefix segments when adding imports 2015-03-30 17:57:25 +00:00
buildutil go/buildutil: use chan (not func) in the ForEachPackage API 2015-03-05 20:14:20 +00:00
callgraph go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +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 tools: add import comments. 2014-12-09 22:42:16 +00:00
importer tools: add import comments. 2014-12-09 22:42:16 +00:00
loader go/loader: support relative imports like the go tool does 2015-03-12 18:51:46 +00:00
pointer go/loader: rename SourceImports flag to ImportFromBinary and invert sense 2015-02-23 23:01:10 +00:00
ssa go/ssa/interp/testdata: remove comment about now-fixed go/types bug 2015-03-17 17:28:01 +00:00
types go/types: permit type elision from composite literal map keys 2015-03-20 22:18:24 +00:00
vcs go/vcs: fix bug in remote package discovery 2015-01-10 08:10:09 +00:00