diff options
author | Vinicius Stock <vinicius.stock@shopify.com> | 2023-11-03 12:20:45 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-03 17:53:54 +0000 |
commit | dd0330249e1f96467e37c80436445fb74b953a30 (patch) | |
tree | db2fb9fc03664b45a23e05d5419e7e49b3c33b20 /prism | |
parent | 9d308ad4958d5b624faa7f8aee03ed4456052ec7 (diff) |
[ruby/prism] Always fully qualify types for RBIs and avoid using attributes
https://github.com/ruby/prism/commit/0d0d039f8e
Diffstat (limited to 'prism')
-rwxr-xr-x | prism/templates/template.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/prism/templates/template.rb b/prism/templates/template.rb index 6560af3a76..553dbb5504 100755 --- a/prism/templates/template.rb +++ b/prism/templates/template.rb @@ -64,7 +64,7 @@ module Prism end def rbi_class - ruby_type + "Prism::#{ruby_type}" end end @@ -76,7 +76,7 @@ module Prism end def rbi_class - "T.nilable(#{ruby_type})" + "T.nilable(Prism::#{ruby_type})" end end @@ -88,7 +88,7 @@ module Prism end def rbi_class - "T::Array[Node]" + "T::Array[Prism::Node]" end def java_type @@ -170,7 +170,7 @@ module Prism end def rbi_class - "Location" + "Prism::Location" end def java_type @@ -189,7 +189,7 @@ module Prism end def rbi_class - "T.nilable(Location)" + "T.nilable(Prism::Location)" end def java_type @@ -353,8 +353,6 @@ module Prism HEADING when ".rbi" <<~HEADING - # typed: true - =begin This file is generated by the templates/template.rb script and should not be modified manually. See #{filepath} |