gofix: add -diff, various fixes and helpers
* add -diff command line option
* use scoping information in refersTo, isPkgDot, isPtrPkgDot.
* add new scoping-based helpers countUses, rewriteUses, assignsTo, isTopName.
* rename rewrite to walk, add walkBeforeAfter.
* add toy typechecker, a placeholder for go/types
LGTM but please address the few outstanding issues http://codereview.appspot.com/4285053/diff/18001/src/cmd/gofix/typecheck.go File src/cmd/gofix/typecheck.go (right): http://codereview.appspot.com/4285053/diff/18001/src/cmd/gofix/typecheck.go#newcode149 src/cmd/gofix/typecheck.go:149: var ...
13 years, 1 month ago
(2011-04-06 22:26:09 UTC)
#8
*** Submitted as http://code.google.com/p/go/source/detail?r=b124a0dd4408 *** gofix: add -diff, various fixes and helpers * add -diff ...
13 years, 1 month ago
(2011-04-08 16:27:10 UTC)
#11
*** Submitted as http://code.google.com/p/go/source/detail?r=b124a0dd4408 ***
gofix: add -diff, various fixes and helpers
* add -diff command line option
* use scoping information in refersTo, isPkgDot, isPtrPkgDot.
* add new scoping-based helpers countUses, rewriteUses, assignsTo, isTopName.
* rename rewrite to walk, add walkBeforeAfter.
* add toy typechecker, a placeholder for go/types
R=gri
CC=golang-dev
http://codereview.appspot.com/4285053
Issue 4285053: code review 4285053: gofix: add -diff, various fixes and helpers
(Closed)
Created 13 years, 2 months ago by rsc
Modified 13 years, 1 month ago
Reviewers:
Base URL:
Comments: 108