class LSProtocol::InlineValueEvaluatableExpression

Overview

Provide an inline value through an expression evaluation. If only a range is specified, the expression will be extracted from the underlying document. An optional expression can be used to override the extracted expression.

@since 3.17.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(range : Range | Nil, expression : String | Nil = nil) #

[View source]

Instance Method Detail

def expression : String | Nil #

If specified the expression overrides the extracted expression.


[View source]
def range : Range #

The document range for which the inline value applies. The range is used to extract the evaluatable expression from the underlying document.


[View source]