nitdoc: Use a fully qualified ID for classes.
[nit.git] / src / test_parser.nit
index 193a734..f654f5b 100644 (file)
@@ -22,7 +22,7 @@ import parser_util
 
 class PrintTreeVisitor
        super Visitor
-       private var rank: Int
+       private var rank: Int = 0
        redef fun visit(n)
        do
                if n isa Token then
@@ -34,11 +34,6 @@ class PrintTreeVisitor
                n.visit_all(self)
                rank = rank - 1
        end
-
-       init
-       do
-               rank = 0
-       end
 end
 
 var no_print = false