Do the same in NodeVisitor

This commit is contained in:
Sijawusz Pur Rahnama 2023-06-08 04:28:37 +02:00
parent e12d72cc88
commit 94e31d4685

View file

@ -43,6 +43,11 @@ module Ameba::AST
super @rule, @source super @rule, @source
end end
def visit(node : Crystal::VisibilityModifier)
node.exp.visibility = node.modifier
true
end
{% for name in NODES %} {% for name in NODES %}
# A visit callback for `Crystal::{{ name }}` node. # A visit callback for `Crystal::{{ name }}` node.
# #