nitcc_runtime :: Visitor :: defaultinit
nitcc_runtime :: Visitor :: enter_visit
The main entry point to visit a noden
nitcc_runtime :: Visitor :: visit
The specific implementation of a visitnitcc_runtime $ Visitor :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
nitcc_runtime :: Visitor :: defaultinit
nitcc_runtime :: Visitor :: enter_visit
The main entry point to visit a noden
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).nitcc_runtime :: Visitor :: visit
The specific implementation of a visitnitcc_runtime :: TreePrinterVisitor
Print a node (using to_s) on a line and recustively each children indented (with two spaces)
# A abstract visitor on syntactic trees generated by nitcc
abstract class Visitor
# The main entry point to visit a node `n`
# Should not be redefined
fun enter_visit(n: Node)
do
visit(n)
end
# The specific implementation of a visit
#
# Should be redefined by concrete visitors
#
# Should not be called directly (use `enter_visit` instead)
#
# By default, the visitor just rescursively visit the children of `n`
protected fun visit(n: Node)
do
n.visit_children(self)
end
end
lib/nitcc_runtime/nitcc_runtime.nit:272,1--292,3