Class: LSP::CallHierarchyOutgoingCall

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

Overview

export interface CallHierarchyOutgoingCall

/**
 * The item that is called.
 */
to: CallHierarchyItem;
/**
 * The range at which this item is called. This is the range relative to the caller, e.g the item
 * passed to [`provideCallHierarchyOutgoingCalls`](#CallHierarchyItemProvider.provideCallHierarchyOutgoingCalls)
 * and not [`this.to`](#CallHierarchyOutgoingCall.to).
 */
fromRanges: Range[];

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#fromRangesObject

type: CallHierarchyItem # type: Range[]



98
99
100
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 98

def fromRanges
  @fromRanges
end

#toObject

type: CallHierarchyItem # type: Range[]



98
99
100
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 98

def to
  @to
end

Instance Method Details

#from_h!(value) ⇒ Object



100
101
102
103
104
105
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 100

def from_h!(value)
  value = {} if value.nil?
  self.to = CallHierarchyItem.new(value['to']) unless value['to'].nil?
  self.fromRanges = value['fromRanges'].map { |val| val } unless value['fromRanges'].nil? # Unknown array type
  self
end