Class: ReferenceExtractor::Internal::UnresolvedReference

Inherits:
Struct
  • Object
show all
Defined in:
lib/reference_extractor/internal/unresolved_reference.rb

Overview

An unresolved reference from a file in one package to a constant that may be defined in a different package. Unresolved means that we know how it’s referred to in the file, and we have enough context on that reference to figure out the fully qualified reference such that we can produce a Reference in a separate pass. However, we have not yet resolved it to its fully qualified version.

Instance Attribute Summary collapse

Instance Attribute Details

#constant_nameObject

Returns the value of attribute constant_name

Returns:

  • (Object)

    the current value of constant_name



9
10
11
# File 'lib/reference_extractor/internal/unresolved_reference.rb', line 9

def constant_name
  @constant_name
end

#namespace_pathObject

Returns the value of attribute namespace_path

Returns:

  • (Object)

    the current value of namespace_path



9
10
11
# File 'lib/reference_extractor/internal/unresolved_reference.rb', line 9

def namespace_path
  @namespace_path
end

#relative_pathObject

Returns the value of attribute relative_path

Returns:

  • (Object)

    the current value of relative_path



9
10
11
# File 'lib/reference_extractor/internal/unresolved_reference.rb', line 9

def relative_path
  @relative_path
end

#source_locationObject

Returns the value of attribute source_location

Returns:

  • (Object)

    the current value of source_location



9
10
11
# File 'lib/reference_extractor/internal/unresolved_reference.rb', line 9

def source_location
  @source_location
end