Create a new clone of self

Property definitions

nitc :: test_astbuilder $ ANode :: replace_clone
	# Create a new clone of `self`
	fun replace_clone
	do
		var self_clone = self.clone
		replace_with(self.clone)
		self_clone.location = location
		#Call the `validate` method to set correctly the parents and the location
		self_clone.validate
	end
src/test_astbuilder.nit:51,2--59,4