Accept immediately calls the visit method on the visitor, passing the node as a parameter.
accept直接对访问器调用visit方法,并把节点作为参数传递。
It USES only a single visit (IPDOMNode node) method, which checks if the visited node is of a certain type.
它只使用单个的visit (IPDOMNode node)方法,该方法检查访问到的节点是否属于某一个类型。
Visit-node takes a list of visitor functions, each with a signature (fn [node state]) that returns a context map, which can contain the keys: node, : state, : stop, or: jump.
visit - node获取一个访问者函数列表,其中每个函数都有一个返回上下文映射的签名(fn [node state]),上下文映射中可能包含键:node、: state、: stop或:jump。
应用推荐