class Solargraph::Source::Chain::Link
Attributes
@return [Pin::Base]
@return [String]
Public Class Methods
Source
# File lib/solargraph/source/chain/link.rb, line 16 def initialize word = '<undefined>' @word = word end
@param word [String]
Public Instance Methods
Source
# File lib/solargraph/source/chain/link.rb, line 75 def clone_body clone.mark_head(false) end
Make a copy of this link unmarked as the head of a chain
@return [self]
Source
# File lib/solargraph/source/chain/link.rb, line 68 def clone_head clone.mark_head(true) end
Make a copy of this link marked as the head of a chain
@return [self]
Source
# File lib/solargraph/source/chain/link.rb, line 35 def constant? is_a?(Chain::Constant) end
Source
# File lib/solargraph/source/chain/link.rb, line 49 def desc word end
debugging description of contents; not for machine use @return [String]
Source
# File lib/solargraph/source/chain/link.rb, line 57 def inspect "#<#{self.class} - `#{self.desc}`>" end
Source
# File lib/solargraph/source/chain/link.rb, line 43 def resolve api_map, name_pin, locals [] end
@param api_map [ApiMap] @param name_pin [Pin::Base] @param locals [::Array<Pin::Base>] @return [::Array<Pin::Base>]
Source
# File lib/solargraph/source/chain/link.rb, line 31 def undefined? word == '<undefined>' end
Protected Instance Methods
Source
# File lib/solargraph/source/chain/link.rb, line 27 def equality_fields [self.class, word] end
@sg-ignore two problems - Declared return type
::Solargraph::Source::Chain::Array does not match inferred type ::Array(::Class<::Solargraph::Source::Chain::Link>, ::String) for Solargraph::Source::Chain::Link#equality_fields and Not enough arguments to Module#protected
Source
# File lib/solargraph/source/chain/link.rb, line 102 def mark_head bool @head = bool self end
Mark whether this link is the head of a chain
@param bool [Boolean] @return [self]