go/gopls/internal/lsp/protocol/generate
pjw 3e1371fd13 gopls/internal: start on LSP stub generator in Go.
This is the first in a series of CLs implementing the new stub
generator. The code is intended to reproduce exactly the current
state of the generated code.

This CL has the final file layout, but primarily consists
of the parsing of the specification.

The LSP maintainers now provide a .json file describing the messages and
types used in the protocol. The new code in this CL, written in Go,
parses this file and generates Go definitions.

The tests need to be run by hand because the metaModel.json file is not
available to the presubmit tests.

Related golang/go#52969

Change-Id: Id2fc58c973a92c39ba98c936f2af03b1c40ada44
Reviewed-on: https://go-review.googlesource.com/c/tools/+/443055
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Peter Weinberger <pjw@google.com>
2022-10-26 13:02:30 +00:00
..
compare.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
data.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
doc.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
generate.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
main.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
main_test.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
naming.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
output.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
parse.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
types.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00
utilities.go gopls/internal: start on LSP stub generator in Go. 2022-10-26 13:02:30 +00:00