1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
17
`Rename some functions in net/url.
19
http://codereview.appspot.com/5671061
23
func url2(f *ast.File) bool {
24
if !imports(f, "net/url") {
30
walk(f, func(n interface{}) {
31
// Rename functions and methods.
32
sel, ok := n.(*ast.SelectorExpr)
36
if !isTopName(sel.X, "url") {
39
if sel.Sel.Name == "ParseWithReference" {
40
sel.Sel.Name = "ParseWithFragment"