class SyntaxTree::TopConstRef

def copy(constant: nil, location: nil)

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