class LanguageServer::Protocol::Interface::FoldingRangeParams

def initialize(work_done_token: nil, partial_result_token: nil, text_document:)

def initialize(work_done_token: nil, partial_result_token: nil, text_document:)
  @attributes = {}
  @attributes[:workDoneToken] = work_done_token if work_done_token
  @attributes[:partialResultToken] = partial_result_token if partial_result_token
  @attributes[:textDocument] = text_document
  @attributes.freeze
end

def partial_result_token

Returns:
  • (ProgressToken) -
def partial_result_token
  attributes.fetch(:partialResultToken)
end

def text_document

Returns:
  • (TextDocumentIdentifier) -
def text_document
  attributes.fetch(:textDocument)
end

def to_hash

def to_hash
  attributes
end

def to_json(*args)

def to_json(*args)
  to_hash.to_json(*args)
end

def work_done_token

Returns:
  • (ProgressToken) -
def work_done_token
  attributes.fetch(:workDoneToken)
end