class

LSProtocol::InlineValueEvaluatableExpression

Inherits JSON::Serializable / Reference / Object

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

Constructors

new(pull : JSON::PullParser)
Source
new(range : Range | Nil, expression : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

expression

If specified the expression overrides the extracted expression.

Source
range

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

Source