nitcc_runtime :: Visitor :: defaultinit
# 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:267,1--287,3