Class: LSP::CallHierarchyServerCapabilities

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol_callhierarchy.proposed.rb

Overview

export interface CallHierarchyServerCapabilities

/**
 * The server provides Call Hierarchy support.
 */
callHierarchyProvider?: boolean | CallHierarchyOptions | (CallHierarchyRegistrationOptions & StaticRegistrationOptions);

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ CallHierarchyServerCapabilities

Returns a new instance of CallHierarchyServerCapabilities.



187
188
189
190
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 187

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[callHierarchyProvider]
end

Instance Attribute Details

#callHierarchyProviderObject

type: boolean | CallHierarchyOptions | (CallHierarchyRegistrationOptions & StaticRegistrationOptions)



185
186
187
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 185

def callHierarchyProvider
  @callHierarchyProvider
end

Instance Method Details

#from_h!(value) ⇒ Object



192
193
194
195
196
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 192

def from_h!(value)
  value = {} if value.nil?
  self.callHierarchyProvider = value['callHierarchyProvider'] # Unknown type
  self
end