struct LSP::DocumentHighlight

Overview

A document highlight is a range inside a text document which deserves special attention, usually an occurrence of a symbol.

Included Modules

Defined in:

requests/language_features/document_highlight.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 kind : DocumentHighlightKind | Nil #

The highlight kind, defaulting to Text.


[View source]
def kind=(kind : DocumentHighlightKind | Nil) #

The highlight kind, defaulting to Text.


[View source]
def range : Range #

The range this highlight applies to.


[View source]
def range=(range : Range) #

The range this highlight applies to.


[View source]