struct LSP::SemanticTokens

Overview

The semantic tokens of a document.

The data is an array of relative 5-tuples: delta line, delta start, length, token type index and token modifier bitset.

Included Modules

Defined in:

requests/language_features/semantic_tokens.cr

Constructors

Instance Method Summary

Macros inherited from module JSON::Serializable

json_discriminator(field, mapping, *, default = nil) json_discriminator

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(**args) #

[View source]

Instance Method Detail

def data : Array(Int32) #

[View source]
def data=(data : Array(Int32)) #

[View source]
def result_id : String | Nil #

An optional result id, used by the delta protocol.


[View source]
def result_id=(result_id : String | Nil) #

An optional result id, used by the delta protocol.


[View source]