class LanguageServer::Protocol::Interface::InlineValueContext

Attributes

attributes[R]

Public Class Methods

new(frame_id:, stopped_location:) click to toggle source
# File lib/language_server/protocol/interface/inline_value_context.rb, line 5
def initialize(frame_id:, stopped_location:)
  @attributes = {}

  @attributes[:frameId] = frame_id
  @attributes[:stoppedLocation] = stopped_location

  @attributes.freeze
end

Public Instance Methods

frame_id() click to toggle source

The stack frame (as a DAP Id) where the execution has stopped.

@return [number]

# File lib/language_server/protocol/interface/inline_value_context.rb, line 18
def frame_id
  attributes.fetch(:frameId)
end
stopped_location() click to toggle source

The document range where execution has stopped. Typically the end position of the range denotes the line where the inline values are shown.

@return [Range]

# File lib/language_server/protocol/interface/inline_value_context.rb, line 28
def stopped_location
  attributes.fetch(:stoppedLocation)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/inline_value_context.rb, line 34
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/inline_value_context.rb, line 38
def to_json(*args)
  to_hash.to_json(*args)
end