Token-type indices used by the server’s semantic-token legend.
Names map to LSP token types by lowercasing their first character, including docCommentTag.
| Enumeration Member | Value | Description |
|---|
Class | 2 | LSP class category, reserved in the legend. |
Comment | 16 | Ordinary comments and documentation text outside classified tags. |
DocCommentTag | 21 | Recognized documentation tags, including their leading at sign. |
Enum | 3 | Enum and union declaration names. |
EnumMember | 10 | Enum member declaration names. |
Event | 11 | LSP event category, reserved in the legend. |
Function | 12 | Operations, functions, and scalar constructors. |
Interface | 4 | Interface declaration names. |
Keyword | 15 | Language keywords and compiler directives. |
Macro | 14 | Decorator uses and unrecognized documentation tags. |
Method | 13 | LSP method category, reserved in the legend. |
Namespace | 0 | Namespace declarations, using directives, and bases of qualified references. |
Number | 18 | Numeric literals in source. |
Operator | 20 | Punctuation and interpolation delimiters. |
Parameter | 7 | Function or decorator parameter declarations. |
Property | 9 | Model, object, and union properties, including union variants. |
Regexp | 19 | LSP regular-expression category, reserved in the legend. |
String | 17 | String literals and the text portions of interpolated strings. |
Struct | 5 | Model and alias declaration names. |
Type | 1 | Scalar declarations and references classified syntactically as types. |
TypeParameter | 6 | Template parameter declarations and named template arguments. |
Variable | 8 | Constant declarations and parameter or property names in documentation tags. |