nitc :: CloneVisitor
nitc :: CloneVisitor :: defaultinit
nitc $ CloneVisitor :: SELF
Type of this instance, automatically specialized in every classnitc $ CloneVisitor :: visit
What the visitor do when a node is visitedcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: Visitor :: current_node=
The current visited nodenitc :: Visitor :: defaultinit
nitc :: CloneVisitor :: defaultinit
core :: Object :: defaultinit
nitc :: Visitor :: enter_visit
Ask the visitor to visit a given node.core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).
private class CloneVisitor
super Visitor
redef fun visit(node)
do
# return when the node is an annotation to avoid the clonage
if node isa AAnnotations then return
node.do_cloneable(self)
node.visit_all(self)
end
end
src/test_astbuilder.nit:36,1--46,3