]> Cypherpunks repositories - gostls13.git/commit
gofix: add -diff, various fixes and helpers
authorRuss Cox <rsc@golang.org>
Fri, 8 Apr 2011 16:27:08 +0000 (12:27 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 8 Apr 2011 16:27:08 +0000 (12:27 -0400)
commit877c1892bb2e6501c8946c3645f685171ccb6c7a
tree0f0b3668aa8a64646057c6c71593026213f14654
parentfb175cf77ef3a0c49e6bbdb54639fd51dd9a750f
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
https://golang.org/cl/4285053
src/cmd/gofix/fix.go
src/cmd/gofix/httpserver.go
src/cmd/gofix/main.go
src/cmd/gofix/main_test.go
src/cmd/gofix/netdial.go
src/cmd/gofix/osopen.go
src/cmd/gofix/procattr.go
src/cmd/gofix/typecheck.go [new file with mode: 0644]