[ruby/prism] Update Ruby deps
https://github.com/ruby/prism/commit/594e2a69ed
This commit is contained in:
parent
12b2b577b7
commit
4b1fea81f9
@ -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",
|
||||
|
@ -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(", ") %> }
|
||||
|
Loading…
x
Reference in New Issue
Block a user