aboutsummaryrefslogtreecommitdiff
path: root/cmd/guru/what.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2023-03-15 13:19:36 -0400
committerDan Willemsen <dwillemsen@google.com>2023-03-15 14:18:08 -0400
commit09c5a32afc5b66f28f166a68afe1fc71afbf9b73 (patch)
tree194d7b0e539d014393564a256bec571e18d6533a /cmd/guru/what.go
parentf10932f763d058b0dcb3acfb795c869996fef47b (diff)
parent031fc75960d487b0b15db12fb328676236a3a39c (diff)
downloadgolang-x-tools-main.tar.gz
Upgrade golang-x-tools to v0.7.0HEADmastermain
Not using external_updater this time to switch to the new upstream tags. Test: treehugger Change-Id: I31488b4958a366ed7f183bb387d3e1446acc13ae
Diffstat (limited to 'cmd/guru/what.go')
-rw-r--r--cmd/guru/what.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/guru/what.go b/cmd/guru/what.go
index 82495b4f8..7ebabbd82 100644
--- a/cmd/guru/what.go
+++ b/cmd/guru/what.go
@@ -24,7 +24,6 @@ import (
// It is intended to be a very low-latency query callable from GUI
// tools, e.g. to populate a menu of options of slower queries about
// the selected location.
-//
func what(q *Query) error {
qpos, err := fastQueryPos(q.Build, q.Pos)
if err != nil {
@@ -170,7 +169,6 @@ func what(q *Query) error {
//
// TODO(adonovan): what about _test.go files that are not part of the
// package?
-//
func guessImportPath(filename string, buildContext *build.Context) (srcdir, importPath string, err error) {
absFile, err := filepath.Abs(filename)
if err != nil {