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 ...
*** 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 15 years, 1 month ago by rsc
Modified 15 years ago
Reviewers:
Base URL:
Comments: 108