blob: c76f91d5c61e3f6448afc5ec4aa26904726fa465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
#pragma once
#include "../../slang-com-helper.h"
#include "../../slang-com-ptr.h"
#include "../../slang.h"
#include "../../source/core/slang-rtti-info.h"
#include "../../source/compiler-core/slang-json-value.h"
namespace Slang
{
namespace LanguageServerProtocol
{
struct ServerInfo
{
String name;
String version;
static const StructRttiInfo g_rttiInfo;
};
enum class TextDocumentSyncKind
{
None = 0,
Full = 1,
Incremental = 2
};
struct TextDocumentSyncOptions
{
bool openClose;
int32_t change; // TextDocumentSyncKind
static const StructRttiInfo g_rttiInfo;
};
struct TextDocumentItem
{
String uri;
String languageId;
int version;
String text;
static const StructRttiInfo g_rttiInfo;
};
struct TextDocumentIdentifier
{
String uri;
static const StructRttiInfo g_rttiInfo;
};
struct VersionedTextDocumentIdentifier
{
String uri;
int version;
static const StructRttiInfo g_rttiInfo;
};
struct Position
{
int line = -1;
int character = -1;
static const StructRttiInfo g_rttiInfo;
};
struct Range
{
Position start;
Position end;
static const StructRttiInfo g_rttiInfo;
};
struct DidOpenTextDocumentParams
{
TextDocumentItem textDocument;
static const StructRttiInfo g_rttiInfo;
static const UnownedStringSlice methodName;
};
struct TextDocumentContentChangeEvent
{
Range range; // optional
String text;
static const StructRttiInfo g_rttiInfo;
};
struct DidChangeTextDocumentParams
{
VersionedTextDocumentIdentifier textDocument;
List<TextDocumentContentChangeEvent> contentChanges;
static const StructRttiInfo g_rttiInfo;
static const UnownedStringSlice methodName;
};
struct DidCloseTextDocumentParams
{
TextDocumentIdentifier textDocument;
static const StructRttiInfo g_rttiInfo;
static const UnownedStringSlice methodName;
};
struct ServerCapabilities
{
String positionEncoding;
TextDocumentSyncOptions textDocumentSync;
static const StructRttiInfo g_rttiInfo;
};
struct WorkspaceFolder
{
String uri;
String name;
static const StructRttiInfo g_rttiInfo;
};
struct InitializeParams
{
List<WorkspaceFolder> workspaceFolders;
static const UnownedStringSlice methodName;
static const StructRttiInfo g_rttiInfo;
};
struct NullResponse
{
static const StructRttiInfo g_rttiInfo;
static NullResponse* get();
};
struct InitializeResult
{
ServerCapabilities capabilities;
ServerInfo serverInfo;
static const StructRttiInfo g_rttiInfo;
};
struct ShutdownParams
{
static const UnownedStringSlice methodName;
};
struct ExitParams
{
static const UnownedStringSlice methodName;
};
}
} // namespace LanguageServerProtocol
|