1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:54:57 -07:00
go/cmd/guru
Alan Donovan 1529f889eb cmd/guru: report start and end positions for non-PkgName Objects
Most objects are declared by an identifier, so the end position is
start+len(name).  However, this heuristic doesn't work for PkgName
objects because a (non-renaming) import creates an object without an
identifier.

Fixes issue github.com/Microsoft/vscode-go#562

Change-Id: I0eb44ca33a643c910d97abbf700ea4c3cd23bb41
Reviewed-on: https://go-review.googlesource.com/32440
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-10-31 16:37:29 +00:00
..
serial cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
testdata/src cmd/guru: show correct definition for embedded type. 2016-08-24 12:03:13 +00:00
callees.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
callers.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
callstack.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
definition.go cmd/guru: show correct definition for embedded type. 2016-08-24 12:03:13 +00:00
describe.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
freevars.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
guru_test.go cmd/guru: suppress failing test on plan9 2016-07-18 14:28:24 +00:00
guru.go cmd/guru: report start and end positions for non-PkgName Objects 2016-10-31 16:37:29 +00:00
implements.go cmd/guru: implements: if selected expr is a value, use its type 2016-04-28 14:33:14 +00:00
main.go cmd/guru: update link to documentation 2016-07-08 22:10:47 +00:00
peers.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
pointsto.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
pos.go cmd/guru: fix nil deref when position is not in Go source 2016-03-07 15:53:42 +00:00
referrers.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
what.go cmd/guru: what: include imported package names in sameids 2016-07-15 18:55:24 +00:00
whicherrs.go cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00