struct

LSP::SemanticTokensLegend

Inherits JSON::Serializable < LSP::Initializer < Struct < Value < Object

The token types and modifiers a server emits, in index order.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

token_modifiers

The token modifiers of the legend.

Source
token_modifiers=(token_modifiers : Array(String))

The token modifiers of the legend.

Source
token_types

The token types of the legend, standard names (class, method, ...) or server specific ones.

Source
token_types=(token_types : Array(String))

The token types of the legend, standard names (class, method, ...) or server specific ones.

Source