Class: RubyIndexer::Entry::UnresolvedMethodAlias

Inherits:
RubyIndexer::Entry show all
Defined in:
lib/ruby_indexer/lib/ruby_indexer/entry.rb

Overview

An unresolved method alias is an alias entry for which we aren’t sure what the right hand side points to yet. For example, if we have ‘alias a b`, we create an unresolved alias for a because we aren’t sure immediate what b is referring to

Instance Attribute Summary collapse

Attributes inherited from RubyIndexer::Entry

#configuration, #location, #name, #uri, #visibility

Instance Method Summary collapse

Methods inherited from RubyIndexer::Entry

#comments, #file_name, #file_path, #private?, #protected?, #public?

Constructor Details

#initialize(configuration, new_name, old_name, owner, uri, location, comments) ⇒ UnresolvedMethodAlias

: (Configuration configuration, String new_name, String old_name, Entry::Namespace? owner, URI::Generic uri, Location location, String? comments) -> void



440
441
442
443
444
445
446
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 440

def initialize(configuration, new_name, old_name, owner, uri, location, comments) # rubocop:disable Metrics/ParameterLists
  super(configuration, new_name, uri, location, comments)

  @new_name = new_name
  @old_name = old_name
  @owner = owner
end

Instance Attribute Details

#new_nameObject (readonly)

: String



434
435
436
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 434

def new_name
  @new_name
end

#old_nameObject (readonly)

: String



434
435
436
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 434

def old_name
  @old_name
end

#ownerObject (readonly)

: Entry::Namespace?



437
438
439
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 437

def owner
  @owner
end