]> Cypherpunks repositories - gostls13.git/commit
gofix: error fix
authorRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 01:45:21 +0000 (21:45 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 2 Nov 2011 01:45:21 +0000 (21:45 -0400)
commit758200f219641b2ca8af1a5264456a72124a1b21
tree5b647e39e1509576a6335411c3490d9476bb5c98
parentd9877e22fe205800029ef3d39b015b2def5a79b0
gofix: error fix

To make the error fix more useful, expand typecheck to gather
more information about struct fields, typecheck range statements,
typecheck indirect and index of named types, and collect information
about assignment conversions.

Also, change addImport to rename top-level uses of a to-be-imported
identifier to avoid conflicts.  This duplicated some of the code in
the url fix, so that fix is now shorter.

R=iant, r, r
CC=golang-dev
https://golang.org/cl/5305066
13 files changed:
src/cmd/gofix/Makefile
src/cmd/gofix/error.go [new file with mode: 0644]
src/cmd/gofix/error_test.go [new file with mode: 0644]
src/cmd/gofix/fix.go
src/cmd/gofix/httpheaders.go
src/cmd/gofix/imagecolor.go
src/cmd/gofix/main.go
src/cmd/gofix/math.go
src/cmd/gofix/reflect.go
src/cmd/gofix/signal.go
src/cmd/gofix/typecheck.go
src/cmd/gofix/url.go
src/cmd/gofix/url_test.go