1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:08:36 -06:00
go/refactor/rename
Alan Donovan d73c11bfcb refactor/rename: make -from syntax support string literals for complex import paths.
(They may contain any character, after all.)

Also, allow but don't require parens and stars.
e.g. (*"encoding/json".Decoder).Decode or "encoding/json".Decoder.Decode
     but not encoding/json.Decoder.Decode.

Since -from queries are now Go expressions, we use the Go parser.
(Thanks to Rog Peppe for the suggestion.)

LGTM=sameer
R=sameer
CC=golang-codereviews, gri, rogpeppe
https://golang.org/cl/154610043
2014-10-31 15:39:22 -04:00
..
check.go cmd/gorename: a precise, type-aware renaming tool for Go identifiers. 2014-09-23 10:23:04 -04:00
rename_test.go refactor/rename: make -from syntax support string literals for complex import paths. 2014-10-31 15:39:22 -04:00
rename.el cmd/gorename: a precise, type-aware renaming tool for Go identifiers. 2014-09-23 10:23:04 -04:00
rename.go refactor: don't litter the source tree with backup turdlets. 2014-10-21 11:15:00 -04:00
spec.go refactor/rename: make -from syntax support string literals for complex import paths. 2014-10-31 15:39:22 -04:00
util.go refactor/rename: make -from syntax support string literals for complex import paths. 2014-10-31 15:39:22 -04:00