fix: Use compound.NodeVisitor

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>