class LanguageServer::Protocol::Interface::CallHierarchyIncomingCall
Attributes
attributes[R]
Public Class Methods
new(from:, from_ranges:)
click to toggle source
# File lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb, line 5 def initialize(from:, from_ranges:) @attributes = {} @attributes[:from] = from @attributes[:fromRanges] = from_ranges @attributes.freeze end
Public Instance Methods
from()
click to toggle source
The item that makes the call.
@return [CallHierarchyItem]
# File lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb, line 18 def from attributes.fetch(:from) end
from_ranges()
click to toggle source
The ranges at which the calls appear. This is relative to the caller denoted by [`this.from`](#CallHierarchyIncomingCall.from).
@return [Range
# File lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb, line 27 def from_ranges attributes.fetch(:fromRanges) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb, line 33 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb, line 37 def to_json(*args) to_hash.to_json(*args) end