Don't extend from EmptyVisitor and overwrite visitEnd(): This will lead to calls to visitEnd() also for every sub-visitor, as EmptyVisitor always returns this.
2 files changed