Class: LSP::CallHierarchyOutgoingCall
- 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
* and not this.to.
*/
fromRanges: Range;
}
Instance Attribute Summary collapse
-
#fromRanges ⇒ Object
type: CallHierarchyItem # type: Range.
-
#to ⇒ 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
#fromRanges ⇒ Object
type: CallHierarchyItem # type: Range
98 99 100 |
# File 'lib/lsp/lsp_protocol_callhierarchy.proposed.rb', line 98 def fromRanges @fromRanges end |
#to ⇒ Object
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 |