Skip to content

Commit 68f2d37

Browse files
committed
Ensure you can use child_nodes on all nodes
1 parent 3b6c142 commit 68f2d37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/syntax_tree.rb

+8
Original file line numberDiff line numberDiff line change
@@ -3968,6 +3968,10 @@ def comments
39683968
[]
39693969
end
39703970

3971+
def child_nodes
3972+
[]
3973+
end
3974+
39713975
def format(q)
39723976
q.text(value)
39733977
end
@@ -12976,6 +12980,10 @@ def initialize(location:, comments: [])
1297612980
@comments = comments
1297712981
end
1297812982

12983+
def child_nodes
12984+
[]
12985+
end
12986+
1297912987
def format(q)
1298012988
end
1298112989

0 commit comments

Comments
 (0)