class Prism::Relocation::Entry

first accessed.
An entry in a repository that will lazily reify its values when they are

def comments

Fetch the leading and trailing comments of the value.
def comments
  leading_comments.concat(trailing_comments)
end

def end_character_column

Fetch the end character column of the value.
def end_character_column
  fetch_value(:end_character_column)
end

def end_character_offset

Fetch the end character offset of the value.
def end_character_offset
  fetch_value(:end_character_offset)
end

def end_code_units_column

configured on the repository.
Fetch the end code units column of the value, for the encoding that was
def end_code_units_column
  fetch_value(:end_code_units_column)
end

def end_code_units_offset

configured on the repository.
Fetch the end code units offset of the value, for the encoding that was
def end_code_units_offset
  fetch_value(:end_code_units_offset)
end

def end_column

Fetch the end byte column of the value.
def end_column
  fetch_value(:end_column)
end

def end_line

Fetch the end line of the value.
def end_line
  fetch_value(:end_line)
end

def end_offset

Fetch the end byte offset of the value.
def end_offset
  fetch_value(:end_offset)
end

def fetch_value(name)

Fetch a value from the entry, raising an error if it is missing.
def fetch_value(name)
  values.fetch(name) do
    raise MissingValueError, "No value for #{name}, make sure the " \
      "repository has been properly configured"
  end
end

def filepath

Fetch the filepath of the value.
def filepath
  fetch_value(:filepath)
end

def initialize(repository)

Initialize a new entry with the given repository.
def initialize(repository)
  @repository = repository
  @values = nil
end

def leading_comments

Fetch the leading comments of the value.
def leading_comments
  fetch_value(:leading_comments)
end

def reify!(values) # :nodoc:

:nodoc:
reify the values.
internal-only API that is called from the repository when it is time to
Reify the values on this entry with the given values. This is an
def reify!(values) # :nodoc:
  @repository = nil
  @values = values
end

def start_character_column

Fetch the start character column of the value.
def start_character_column
  fetch_value(:start_character_column)
end

def start_character_offset

Fetch the start character offset of the value.
def start_character_offset
  fetch_value(:start_character_offset)
end

def start_code_units_column

was configured on the repository.
Fetch the start code units column of the value, for the encoding that
def start_code_units_column
  fetch_value(:start_code_units_column)
end

def start_code_units_offset

was configured on the repository.
Fetch the start code units offset of the value, for the encoding that
def start_code_units_offset
  fetch_value(:start_code_units_offset)
end

def start_column

Fetch the start byte column of the value.
def start_column
  fetch_value(:start_column)
end

def start_line

Fetch the start line of the value.
def start_line
  fetch_value(:start_line)
end

def start_offset

Fetch the start byte offset of the value.
def start_offset
  fetch_value(:start_offset)
end

def trailing_comments

Fetch the trailing comments of the value.
def trailing_comments
  fetch_value(:trailing_comments)
end

def values

Return the values from the repository, reifying them if necessary.
def values
  @values || (@repository.reify!; @values)
end