Skip to content

Commit

Permalink
[ruby/prism] Set proper types for node[] in Java-generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon authored and matzbot committed Feb 28, 2024
1 parent a29c0e8 commit 567d4ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prism/templates/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ def rbi_class
end

def java_type
"Node[]"
if specific_kind
"#{specific_kind}[]"
else
"Node[]"
end
end

# TODO: unduplicate with NodeKindField
Expand Down

0 comments on commit 567d4ee

Please sign in to comment.