class SyntaxTree::HeredocEnd

In the example above the HeredocEnd node represents the closing DOC.
DOC
contents
<<~DOC
HeredocEnd represents the closing declaration of a heredoc.

def ===(other)

def ===(other)
  other.is_a?(HeredocEnd) && value === other.value
end

def accept(visitor)

def accept(visitor)
  visitor.visit_heredoc_end(self)
end

def child_nodes

def child_nodes
  []
end

def copy(value: nil, location: nil)

def copy(value: nil, location: nil)
  node =
    HeredocEnd.new(
      value: value || self.value,
      location: location || self.location
    )
  node.comments.concat(comments.map(&:copy))
  node
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { value: value, location: location, comments: comments }
end

def format(q)

def format(q)
  q.text(value)
end

def initialize(value:, location:)

def initialize(value:, location:)
  @value = value
  @location = location
  @comments = []
end