class LanguageServer::Protocol::Interface::CallHierarchyOutgoingCall
Attributes
attributes[R]
Public Class Methods
new(to:, from_ranges:)
click to toggle source
# File lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb, line 5 def initialize(to:, from_ranges:) @attributes = {} @attributes[:to] = to @attributes[:fromRanges] = from_ranges @attributes.freeze end
Public Instance Methods
from_ranges()
click to toggle source
The range at which this item is called. This is the range relative to the caller, e.g the item passed to `callHierarchy/outgoingCalls` request.
@return [Range
# File lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb, line 27 def from_ranges attributes.fetch(:fromRanges) end
to()
click to toggle source
The item that is called.
@return [CallHierarchyItem]
# File lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb, line 18 def to attributes.fetch(:to) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb, line 33 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb, line 37 def to_json(*args) to_hash.to_json(*args) end