Class: Solargraph::Source::Chain::Head
- Defined in:
- lib/solargraph/source/chain/head.rb
Overview
Note:
Chain::Head is only intended to handle ‘self` and `super`.
Chain::Head is a link for ambiguous words, e.g.; ‘String` can refer to either a class (`String`) or a function (`Kernel#String`).
Constant Summary
Constants included from Logging
Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS
Instance Attribute Summary
Attributes inherited from Link
Instance Method Summary collapse
Methods inherited from Link
#clone_body, #clone_head, #constant?, #desc, #head?, #initialize, #inspect, #nullable?, #to_s, #undefined?
Methods included from Logging
Methods included from Equality
#==, #eql?, #equality_fields, #freeze, #hash
Constructor Details
This class inherits a constructor from Solargraph::Source::Chain::Link
Instance Method Details
#resolve(api_map, name_pin, locals) ⇒ Object
11 12 13 14 15 |
# File 'lib/solargraph/source/chain/head.rb', line 11 def resolve api_map, name_pin, locals return [Pin::ProxyType.anonymous(name_pin.binder, source: :chain)] if word == 'self' # return super_pins(api_map, name_pin) if word == 'super' [] end |