mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Do the same in NodeVisitor
This commit is contained in:
parent
e12d72cc88
commit
94e31d4685
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue