Change information
Commit message:
gopls/internal/util/frob: change Codec.Decode to return the value
Change Codec[T].Decode from Decode(data, *T) to Decode(data) T. This
reads more naturally at every call site and lets the method value be
passed directly as a filecache.Get decoder.
Change-Id: I9912fb96b468a7b993174351110a89e021c74038
Files:
- M gopls/internal/cache/analysis.go
- M gopls/internal/cache/errors.go
- M gopls/internal/cache/methodsets/methodsets.go
- M gopls/internal/cache/symbols/symbols.go
- M gopls/internal/cache/testfuncs/tests.go
- M gopls/internal/cache/typerefs/refs.go
- M gopls/internal/cache/xrefs/xrefs.go
- M gopls/internal/filewatcher/poll_watcher.go
- M gopls/internal/settings/settings.go
- M gopls/internal/util/frob/frob.go
- M gopls/internal/util/frob/frob_test.go
Change size: M
Delta: 11 files changed, 23 insertions(+), 38 deletions(-)
Branch: refs/heads/master