class SyntaxTree::SClass

def copy(target: nil, bodystmt: nil, location: nil)

def copy(target: nil, bodystmt: nil, location: nil)
  node =
    SClass.new(
      target: target || self.target,
      bodystmt: bodystmt || self.bodystmt,
      location: location || self.location
    )
  node.comments.concat(comments.map(&:copy))
  node
end