Reword visit(node) methods comment in AST::NodeVisitor

This commit is contained in:
Sijawusz Pur Rahnama 2022-04-04 01:35:59 +02:00
parent a38cfd1661
commit 2e9ef7fcb2

View file

@ -46,7 +46,9 @@ module Ameba::AST
{% for name in NODES %}
# A visit callback for `Crystal::{{name}}` node.
# Returns true meaning that child nodes will be traversed as well.
#
# Returns `true` if the child nodes should be traversed as well,
# `false` otherwise.
def visit(node : Crystal::{{name}})
return false if skip?(node)