nitc :: ASelfVisitor :: defaultinit
private class ASelfVisitor super Visitor var total: Int = 0 var implicits: Int = 0 redef fun visit(n) do if n isa ASelfExpr then self.total += 1 if n isa AImplicitSelfExpr then self.implicits += 1 end end n.visit_all(self) end end