1fd4e5da5Sopenharmony_ci// Copyright 2018 The Go Authors. 2fd4e5da5Sopenharmony_ci// 3fd4e5da5Sopenharmony_ci// Licensed under the Apache License, Version 2.0 (the "License"); 4fd4e5da5Sopenharmony_ci// you may not use this file except in compliance with the License. 5fd4e5da5Sopenharmony_ci// You may obtain a copy of the License at 6fd4e5da5Sopenharmony_ci// 7fd4e5da5Sopenharmony_ci// http://www.apache.org/licenses/LICENSE-2.0 8fd4e5da5Sopenharmony_ci// 9fd4e5da5Sopenharmony_ci// Unless required by applicable law or agreed to in writing, software 10fd4e5da5Sopenharmony_ci// distributed under the License is distributed on an "AS IS" BASIS, 11fd4e5da5Sopenharmony_ci// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12fd4e5da5Sopenharmony_ci// See the License for the specific language governing permissions and 13fd4e5da5Sopenharmony_ci// limitations under the License. 14fd4e5da5Sopenharmony_ci 15fd4e5da5Sopenharmony_ci// Package protocol contains the structs that map directly to the wire format 16fd4e5da5Sopenharmony_ci// of the "Language Server Protocol". 17fd4e5da5Sopenharmony_ci// 18fd4e5da5Sopenharmony_ci// It is a literal transcription, with unmodified comments, and only the changes 19fd4e5da5Sopenharmony_ci// required to make it go code. 20fd4e5da5Sopenharmony_ci// Names are uppercased to export them. 21fd4e5da5Sopenharmony_ci// All fields have JSON tags added to correct the names. 22fd4e5da5Sopenharmony_ci// Fields marked with a ? are also marked as "omitempty" 23fd4e5da5Sopenharmony_ci// Fields that are "|| null" are made pointers 24fd4e5da5Sopenharmony_ci// Fields that are string or number are left as string 25fd4e5da5Sopenharmony_ci// Fields that are type "number" are made float64 26fd4e5da5Sopenharmony_cipackage protocol 27