Class: LSP::CallHierarchyIncomingCall

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

Overview

export interface CallHierarchyIncomingCall

/**
 * The item that makes the call.
 */
from: CallHierarchyItem;
/**
 * The range at which at which the calls appears. This is relative to the caller
 * denoted by [`this.from`](#CallHierarchyIncomingCall.from).
 */
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

#fromObject

type: CallHierarchyItem # type: Range[]



75
76
77
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 75

def from
  @from
end

#fromRangesObject

type: CallHierarchyItem # type: Range[]



75
76
77
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 75

def fromRanges
  @fromRanges
end

Instance Method Details

#from_h!(value) ⇒ Object



77
78
79
80
81
82
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 77

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