1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:38:33 -06:00
go/internal/lsp/cache
Ian Cottrell 540150da73 internal/telemetry: add type safe tag keys
This changes the way keys work, there is still a single internal key
implementation for performance reasons, but the public interface is a set of key
implementations that have type safe Of and Get methods.
This also hides the implemenation of Tag so that we can modify the storage form
and find a more efficient storage if needed.

Change-Id: I6a39cc75c2824c6a92e52d59f16e82e876f16e9c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/223137
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
2020-03-18 13:29:43 +00:00
..
analysis.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
cache.go internal/lsp: move the debug.Instance onto the Context 2020-03-03 22:54:53 +00:00
check.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
debug.go internal/lsp/lsprpc: add a handshake between forwarder and remote 2020-02-24 22:51:04 +00:00
error_test.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
errors.go internal/lsp: move the telemetry package 2020-03-18 13:22:49 +00:00
external.go internal/lsp: move the telemetry package 2020-03-18 13:22:49 +00:00
load.go internal/telemetry: delete the event.TagOf method 2020-03-18 13:23:15 +00:00
mod.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
parse.go internal/lsp: move the telemetry package 2020-03-18 13:22:49 +00:00
pkg.go internal/lsp: add module versions from "go list" to pkg.go.dev links 2020-02-19 19:55:21 +00:00
session.go internal/lsp: migrate telemetry to using the event package 2020-03-12 03:59:16 +00:00
snapshot.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
view.go internal/telemetry: delete the event.TagOf method 2020-03-18 13:23:15 +00:00