blob: 810926de62772bf6b287685cf95574e12c97a05d [file] [log] [blame]
-- Dolphin-rename --
crosspkg.go:
package crosspkg
func Dolphin() { //@rename("Foo", "Dolphin")
}
var Bar int //@rename("Bar", "Tomato")
other.go:
package other
import "golang.org/x/tools/internal/lsp/rename/crosspkg"
func Other() {
crosspkg.Bar
crosspkg.Dolphin() //@rename("Foo", "Flamingo")
}
-- Tomato-rename --
crosspkg.go:
package crosspkg
func Foo() { //@rename("Foo", "Dolphin")
}
var Tomato int //@rename("Bar", "Tomato")
other.go:
package other
import "golang.org/x/tools/internal/lsp/rename/crosspkg"
func Other() {
crosspkg.Tomato
crosspkg.Foo() //@rename("Foo", "Flamingo")
}