class SyntaxTree::RestParam


def method(*rest) end
accepts all remaining positional parameters.
RestParam represents defining a parameter in a method definition that

def ===(other)

def ===(other)
  other.is_a?(RestParam) && name === other.name
end

def accept(visitor)

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

def child_nodes

def child_nodes
  [name]
end

def copy(name: nil, location: nil)

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

def deconstruct_keys(_keys)

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

def format(q)

def format(q)
  q.text("*")
  q.format(name) if name
end

def initialize(name:, location:)

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