instance method
Prism::DotVisitor#visit_splat_node
visit_splat_node(node)
lib/prism/dot_visitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/dot_visitor.rb, line 4180
def visit_splat_node(node)
table = Table.new("SplatNode")
id = node_id(node)
# operator_loc
table.field("operator_loc", location_inspect(node.operator_loc))
# expression
unless (expression = node.expression).nil?
table.field("expression", port: true)
digraph.edge("#{id}:expression -> #{node_id(expression)};")
end
digraph.nodes << <<~DOT
#{id} [
label=<#{table.to_dot.gsub(/\n/, "\n ")}>
];
DOT
super
end
Visit a SplatNode node.