[ruby/prism] Update Ruby deps

https://github.com/ruby/prism/commit/594e2a69ed
This commit is contained in:
Kevin Newton 2025-03-23 13:47:10 -04:00 committed by git
parent 12b2b577b7
commit 4b1fea81f9
2 changed files with 3 additions and 2 deletions

View File

@ -136,6 +136,7 @@ Gem::Specification.new do |spec|
"sig/prism/node.rbs",
"sig/prism/pack.rbs",
"sig/prism/parse_result.rbs",
"sig/prism/parse_result/comments.rbs",
"sig/prism/pattern.rbs",
"sig/prism/reflection.rbs",
"sig/prism/relocation.rbs",

View File

@ -325,7 +325,7 @@ module Prism
visitor.visit_<%= node.human %>(self)
end
# def child_nodes: () -> Array[nil | Node]
# def child_nodes: () -> Array[Node?]
def child_nodes
[<%= node.fields.map { |field|
case field
@ -375,7 +375,7 @@ module Prism
<%= node.name %>.new(<%= ["source", "node_id", "location", "flags", *node.fields.map(&:name)].join(", ") %>)
end
# def deconstruct: () -> Array[nil | Node]
# def deconstruct: () -> Array[Node?]
alias deconstruct child_nodes
# def deconstruct_keys: (Array[Symbol] keys) -> { <%= (["node_id: Integer", "location: Location"] + node.fields.map { |field| "#{field.name}: #{field.rbs_class}" }).join(", ") %> }