]> Cypherpunks repositories - gostls13.git/commit
gofix: handle xml.Unmarshal in xmlapi fix
authorGustavo Niemeyer <gustavo@niemeyer.net>
Wed, 25 Jan 2012 23:07:00 +0000 (21:07 -0200)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Wed, 25 Jan 2012 23:07:00 +0000 (21:07 -0200)
commit9d4ae0ae5cab63013aac9f7682292324f1951666
treea87d4e12c53ee9a2a5120dba26190a31306251fb
parent316f81bb1dfca9f109bf3edf77f4da5821d0ec99
gofix: handle xml.Unmarshal in xmlapi fix

This improves the handling of xml.Unmarshal in
the xmlapi fix by guessing some of the common
types used on it.

This also fixes a bug in the partial typechecker.
In an expression such as f(&a), it'd mark a as
having &T rather than *T.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5572058
src/cmd/gofix/typecheck.go
src/cmd/gofix/xmlapi.go
src/cmd/gofix/xmlapi_test.go