Class: LSP::CallHierarchyIncomingCall
- 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
-
#from ⇒ Object
type: CallHierarchyItem # type: Range[].
-
#fromRanges ⇒ Object
type: CallHierarchyItem # type: Range[].
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#from ⇒ Object
type: CallHierarchyItem # type: Range[]
75 76 77 |
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 75 def from @from end |
#fromRanges ⇒ Object
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 |