Class: LanguageServer::Protocol::Interface::CallHierarchyOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/language_server/protocol/interface/call_hierarchy_options.rb,
sig/language_server/protocol/interface/call_hierarchy_options.rbs

Overview

Call hierarchy options used during static registration.

Since:

  • 3.16.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(work_done_progress: nil) ⇒ CallHierarchyOptions

Returns a new instance of CallHierarchyOptions.

Parameters:

  • work_done_progress: (Boolean) (defaults to: nil)

Since:

  • 3.16.0



10
11
12
13
14
15
16
# File 'lib/language_server/protocol/interface/call_hierarchy_options.rb', line 10

def initialize(work_done_progress: nil)
  @attributes = {}

  @attributes[:workDoneProgress] = work_done_progress if work_done_progress

  @attributes.freeze
end

Instance Attribute Details

#attributesHash[Symbol, untyped] (readonly)

Returns:

  • (Hash[Symbol, untyped])

Since:

  • 3.16.0



23
24
25
# File 'lib/language_server/protocol/interface/call_hierarchy_options.rb', line 23

def attributes
  @attributes
end

Instance Method Details

#to_hashHash[Symbol, untyped]

Returns:

  • (Hash[Symbol, untyped])

Since:

  • 3.16.0



25
26
27
# File 'lib/language_server/protocol/interface/call_hierarchy_options.rb', line 25

def to_hash
  attributes
end

#to_json(*args) ⇒ String

Parameters:

  • (Object)

Returns:

  • (String)

Since:

  • 3.16.0



29
30
31
# File 'lib/language_server/protocol/interface/call_hierarchy_options.rb', line 29

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

#work_done_progressboolean

Returns:

  • (boolean)

Since:

  • 3.16.0



19
20
21
# File 'lib/language_server/protocol/interface/call_hierarchy_options.rb', line 19

def work_done_progress
  attributes.fetch(:workDoneProgress)
end