Skip to content

Commit 96f02a8

Browse files
committed
[#98] Add SymbolTag values Overrides and Implements
Also clean up whitespaces in Markdown
1 parent 5b49297 commit 96f02a8

2 files changed

Lines changed: 85 additions & 57 deletions

File tree

_specifications/lsp/3.18/language/documentSymbol.md

Lines changed: 73 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -168,124 +168,140 @@ export namespace SymbolTag {
168168
* @since 3.16
169169
*/
170170
export const Deprecated = 1;
171-
172-
/**
171+
172+
/**
173173
* Render a symbol with visibility / access modifier "private".
174174
* @since 3.18
175175
*/
176-
export const Private = 2;
177-
178-
/**
176+
export const Private = 2;
177+
178+
/**
179179
* Render a symbol with visibility "package private", e.g. in Java.
180180
* @since 3.18
181181
*/
182-
export const Package = 3;
183-
184-
/**
182+
export const Package = 3;
183+
184+
/**
185185
* Render a symbol with visibility / access modifier "protected".
186186
* The modifier could be combined e.g. with "internal" or "private" in languages like C#.
187187
* @since 3.18
188188
*/
189-
export const Protected = 4;
190-
191-
/**
189+
export const Protected = 4;
190+
191+
/**
192192
* Render a symbol with visibility / access modifier "public".
193193
* @since 3.18
194194
*/
195-
export const Public = 5;
196-
197-
/**
195+
export const Public = 5;
196+
197+
/**
198198
* Render a symbol with visibility / access modifier "internal", e.g. in C# or Kotlin.
199199
* @since 3.18
200200
*/
201-
export const Internal= 6;
202-
203-
/**
201+
export const Internal= 6;
202+
203+
/**
204204
* Render a symbol with visibility / access modifier "file", e.g. in C#.
205205
* @since 3.18
206206
*/
207-
export const File = 7;
208-
207+
export const File = 7;
208+
209209
/**
210210
* Render a symbol as "static".
211211
* @since 3.18
212212
*/
213-
export const Static = 8;
214-
215-
/**
213+
export const Static = 8;
214+
215+
/**
216216
* Render a symbol as "abstract".
217217
* @since 3.18
218218
*/
219-
export const Abstract = 9;
220-
221-
/**
219+
export const Abstract = 9;
220+
221+
/**
222222
* Render a symbol as "final".
223223
* @since 3.18
224224
*/
225-
export const Final = 10;
226-
227-
/**
225+
export const Final = 10;
226+
227+
/**
228228
* Render a symbol as "sealed", e.g. classes and interfaces in Kotlin.
229229
* @since 3.18
230230
*/
231-
export const Sealed = 11;
232-
233-
/**
231+
export const Sealed = 11;
232+
233+
/**
234234
* Render a symbol as "transient", e.g. in Java.
235235
* @since 3.18
236236
*/
237-
export const Transient = 12;
238-
239-
/**
237+
export const Transient = 12;
238+
239+
/**
240240
* Render a symbol as "volatile", e.g. in Java.
241241
* @since 3.18
242242
*/
243-
export const Volatile = 13;
244-
245-
/**
243+
export const Volatile = 13;
244+
245+
/**
246246
* Render a symbol as "synchronized", e.g. in Java.
247247
* @since 3.18
248248
*/
249-
export const Synchronized = 14;
250-
251-
/**
249+
export const Synchronized = 14;
250+
251+
/**
252252
* Render a symbol as "virtual", e.g. in C++.
253253
* @since 3.18
254254
*/
255-
export const Virtual = 15;
256-
257-
/**
255+
export const Virtual = 15;
256+
257+
/**
258258
* Render a symbol as "nullable", e.g. types with '?' in Kotlin.
259259
* @since 3.18
260260
*/
261-
export const Nullable = 16;
262-
263-
/**
261+
export const Nullable = 16;
262+
263+
/**
264264
* Render a symbol as "never null", e.g. types without '?' in Kotlin.
265265
* @since 3.18
266266
*/
267-
export const NonNull = 17;
268-
269-
/**
267+
export const NonNull = 17;
268+
269+
/**
270270
* Render a symbol as declaration.
271271
* @since 3.18
272272
*/
273-
export const Declaration = 18;
274-
275-
/**
273+
export const Declaration = 18;
274+
275+
/**
276276
* Render a symbol as definition (in contrast to declaration), e.g. in header files in C++.
277277
* @since 3.18
278278
*/
279-
export const Definition = 19;
280-
281-
/**
279+
export const Definition = 19;
280+
281+
/**
282282
* Render a symbol as "read-only", i.e. variables / properties that cannot be changed.
283283
* @since 3.18
284284
*/
285-
export const ReadOnly = 20;
285+
export const ReadOnly = 20;
286+
287+
/**
288+
* Render a symbol as "overriding", e.g. a Java method replaces the implementation from an
289+
* equally named method (with same signature) from a parent class.
290+
* @since 3.18
291+
*/
292+
export const Overrides = 21;
293+
294+
/**
295+
* Render a symbol as "implementing", e.g. a Java method implements a
296+
* method with same signature declared in an interface
297+
* or implements an abstract method (with same signature) from an abstract parent class.
298+
* @since 3.18
299+
*/
300+
export const Implements = 22;
286301
}
287302

288-
export type SymbolTag = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
303+
export type SymbolTag = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
304+
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22;
289305
```
290306

291307
<div class="anchorHolder"><a href="#documentSymbol" name="documentSymbol" class="linkableAnchor"></a></div>

_specifications/lsp/3.18/metaModel/metaModel.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14693,6 +14693,18 @@
1469314693
"value": 20,
1469414694
"documentation": "Render a symbol as \"read-only\", i.e. variables / properties that cannot be changed.",
1469514695
"since": "3.18"
14696+
},
14697+
{
14698+
"name": "Overrides",
14699+
"value": 21,
14700+
"documentation": "Render a symbol as \"overriding\", e.g. a Java method replaces the implementation from an equally named method (with same signature) from a parent class.",
14701+
"since": "3.18"
14702+
},
14703+
{
14704+
"name": "Implements",
14705+
"value": 22,
14706+
"documentation": "Render a symbol as \"implementing\", e.g. a Java method implements a method with same signature declared in an interface or implements an abstract method (with same signature) from an abstract parent class.",
14707+
"since": "3.18"
1469614708
}
1469714709
],
1469814710
"documentation": "Symbol tags are extra annotations that tweak the rendering of a symbol.\n\n@since 3.16",

0 commit comments

Comments
 (0)