1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:44:47 -07:00
go/cmd/guru/testdata/src
Alan Donovan 2da0720e4f cmd/guru: support streaming plain and -json output
Visible changes:
- "referrers" queries now emit a stream of results,
  so they start appearing quickly even in large queries.
  We no longer report the total number of matches.
- packageReferrers now also uses AfterTypeCheck hook and streaming.
- XML support has been dropped.
- The -format flag has been replaced by -json.

JSON protocol changes:
- The enclosing Result struct has been removed.
- Likewise the 'mode' field (since the caller knows it already)
- "freevars" and "referrers" now emit a stream of objects
  In the case of referrers, the first object has a different from the rest.
- The "referrers" results include the text of the matching line
  (parity with -json=false)

Implementation details:
- the concurrency-safe q.Output function can be called
  many times, each with a queryResult to print.
- fset is no longer saved in Query (cleaner)
- queryResult methods renamed PrintPlain, JSON

Change-Id: I41a4e3f57f266fcf043ece4045bca82c6f6a356f
Reviewed-on: https://go-review.googlesource.com/21397
Reviewed-by: Michael Matloob <matloob@golang.org>
2016-04-11 19:51:55 +00:00
..
calls cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
calls-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
describe cmd/guru: change "Method set:" to less formal "Methods:" 2016-03-28 14:29:15 +00:00
describe-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
freevars cmd/guru: freevars: reenable test of labels (and improve output) 2016-02-12 03:59:51 +00:00
implements cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
implements-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
implements-methods cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
implements-methods-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
imports cmd/guru: change "Method set:" to less formal "Methods:" 2016-03-28 14:29:15 +00:00
lib cmd/guru: describe: show selectable fields when describing a type 2016-02-12 23:35:49 +00:00
main cmd/guru: rename oracle to guru, copying it to a single package 2016-02-12 03:38:58 +00:00
peers cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
peers-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
pointsto cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
pointsto-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
referrers cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
referrers-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
reflection cmd/guru: fix tests 2016-02-25 22:51:33 +00:00
what cmd/guru: what: report identifiers equivalent to the selected one 2016-02-20 21:18:35 +00:00
what-json cmd/guru: support streaming plain and -json output 2016-04-11 19:51:55 +00:00
whicherrs cmd/guru: whicherrs: don't crash on dead code 2016-03-25 16:35:34 +00:00
README.txt cmd/guru: fix nil deref when position is not in Go source 2016-03-07 15:53:42 +00:00

This is not a Go source file.
Used by TestIssue14684.