Use types.visit in test/syntax.js instead of Visitor.