1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:14:39 -07:00
go/cmd/guru
Alan Donovan e08a7ae6bc cmd/guru: add support for loading modified files
The -modified flag causes guru to read a simple archive file from stdin.
This archive specifies alternative contents for one or more file names.
The build.Context checks this table before delegating to the usual
behavior.

This will not work for files that import "C" since cgo accesses the
file system directly.

Added end-to-end test via Emacs.

Simplify findQueryPos (now: fileOffsetToPos)

Credit: Daniel Morsing, for the prototype of this feature.

Change-Id: I5ae818ed5e8bb81001781893dded2d085e9cf8d6
Reviewed-on: https://go-review.googlesource.com/19498
Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com>
2016-02-15 15:04:13 +00:00
..
serial cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
testdata/src cmd/guru: describe: show methods and fields of an expression 2016-02-15 03:46:17 +00:00
callees.go cmd/guru: fix bad import, and run gofmt 2016-02-12 03:58:01 +00:00
callers.go cmd/guru: call{ers,stack}: avoid pointer analysis where possible 2016-02-12 23:38:00 +00:00
callstack.go cmd/guru: call{ers,stack}: avoid pointer analysis where possible 2016-02-12 23:38:00 +00:00
definition.go cmd/guru: fix bad import, and run gofmt 2016-02-12 03:58:01 +00:00
describe.go cmd/guru: describe: show methods and fields of an expression 2016-02-15 03:46:17 +00:00
emacs-test.bash cmd/guru: add support for loading modified files 2016-02-15 15:04:13 +00:00
freevars.go cmd/guru: freevars: reenable test of labels (and improve output) 2016-02-12 03:59:51 +00:00
guru_test.go cmd/guru: remove vestiges of -pos flag 2016-02-12 22:00:14 +00:00
guru.el cmd/guru: add support for loading modified files 2016-02-15 15:04:13 +00:00
guru.go cmd/guru: add support for loading modified files 2016-02-15 15:04:13 +00:00
guru.vim cmd/guru: clean ups to command-line interface 2016-02-12 21:50:49 +00:00
implements.go cmd/guru: fix bad import, and run gofmt 2016-02-12 03:58:01 +00:00
main.go cmd/guru: add support for loading modified files 2016-02-15 15:04:13 +00:00
peers.go cmd/guru: fix bad import, and run gofmt 2016-02-12 03:58:01 +00:00
pointsto.go cmd/guru: fix bad import, and run gofmt 2016-02-12 03:58:01 +00:00
pos.go cmd/guru: add support for loading modified files 2016-02-15 15:04:13 +00:00
referrers.go cmd/guru: add support for loading modified files 2016-02-15 15:04:13 +00:00
what.go cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
whicherrs.go cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00