function walk$2(ast, { enter, leave }) {
	const instance = new SyncWalker(enter, leave);
	return instance.visit(ast, null);
}
@param {BaseNode} ast
@param {{
  enter?: SyncHandler
  leave?: SyncHandler
}} walker
@returns {BaseNode}