hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
protocol.h File Reference
#include <share/json.hpp>
#include <string>
#include <vector>
#include <optional>
Include dependency graph for protocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Position
 
struct  Range
 
struct  Location
 
struct  TextDocumentIdentifier
 
struct  VersionedTextDocumentIdentifier
 
struct  TextDocumentItem
 
struct  TextDocumentContentChangeEvent
 
struct  DidOpenTextDocumentParams
 
struct  DidChangeTextDocumentParams
 
struct  DidCloseTextDocumentParams
 
struct  CompletionParams
 
struct  CompletionItem
 
struct  CompletionList
 
struct  HoverParams
 
struct  MarkupContent
 
struct  Hover
 
struct  DefinitionParams
 
struct  ReferenceParams
 
struct  DocumentSymbol
 
struct  LspDiagnostic
 
struct  PublishDiagnosticsParams
 
struct  TextDocumentSyncOptions
 
struct  CompletionOptions
 
struct  ServerCapabilities
 
struct  ServerInfo
 
struct  InitializeResult
 
struct  DocumentSymbolParams
 

Namespaces

namespace  lsp
 

Typedefs

using json = nlohmann::json
 
using DefinitionResult = std::vector< Location >
 

Enumerations

enum class  CompletionItemKind {
  Text = 1 , Method = 2 , Function = 3 , Constructor = 4 ,
  Field = 5 , Variable = 6 , Class = 7 , Interface = 8 ,
  Module = 9 , Property = 10 , Unit = 11 , Value = 12 ,
  Enum = 13 , Keyword = 14 , Snippet = 15 , Color = 16 ,
  File = 17 , Reference = 18 , Folder = 19 , EnumMember = 20 ,
  Constant = 21 , Struct = 22 , Event = 23 , Operator = 24 ,
  TypeParameter = 25
}
 
enum class  SymbolKind {
  File = 1 , Module = 2 , Namespace = 3 , Package = 4 ,
  Class = 5 , Method = 6 , Property = 7 , Field = 8 ,
  Constructor = 9 , Enum = 10 , Interface = 11 , Function = 12 ,
  Variable = 13 , Constant = 14 , String = 15 , Number = 16 ,
  Boolean = 17 , Array = 18 , Object = 19 , Key = 20 ,
  Null = 21 , EnumMember = 22 , Struct = 23 , Event = 24 ,
  Operator = 25 , TypeParameter = 26
}
 
enum class  DiagnosticSeverity { Error = 1 , Warning = 2 , Information = 3 , Hint = 4 }
 

Functions

void to_json (json &j, const Position &p)
 
void from_json (const json &j, Position &p)
 
void to_json (json &j, const Range &r)
 
void from_json (const json &j, Range &r)
 
void to_json (json &j, const Location &l)
 
void from_json (const json &j, Location &l)
 
void to_json (json &j, const TextDocumentIdentifier &t)
 
void from_json (const json &j, TextDocumentIdentifier &t)
 
void to_json (json &j, const VersionedTextDocumentIdentifier &t)
 
void from_json (const json &j, VersionedTextDocumentIdentifier &t)
 
void from_json (const json &j, TextDocumentItem &t)
 
void from_json (const json &j, TextDocumentContentChangeEvent &t)
 
void from_json (const json &j, DidOpenTextDocumentParams &p)
 
void from_json (const json &j, DidChangeTextDocumentParams &p)
 
void from_json (const json &j, DidCloseTextDocumentParams &p)
 
void from_json (const json &j, CompletionParams &p)
 
void to_json (json &j, const CompletionItem &c)
 
void to_json (json &j, const CompletionList &cl)
 
void from_json (const json &j, HoverParams &p)
 
void to_json (json &j, const MarkupContent &m)
 
void to_json (json &j, const Hover &h)
 
void from_json (const json &j, DefinitionParams &p)
 
void to_json (json &j, const DefinitionResult &r)
 
void from_json (const json &j, ReferenceParams &p)
 
void to_json (json &j, const DocumentSymbol &s)
 
void to_json (json &j, const LspDiagnostic &d)
 
void to_json (json &j, const PublishDiagnosticsParams &p)
 
void to_json (json &j, const TextDocumentSyncOptions &o)
 
void to_json (json &j, const CompletionOptions &o)
 
void to_json (json &j, const ServerCapabilities &c)
 
void to_json (json &j, const ServerInfo &s)
 
void to_json (json &j, const InitializeResult &r)
 
void from_json (const json &j, DocumentSymbolParams &p)