soutaro / rbs-inline

Inline RBS type declaration
MIT License
165 stars 6 forks source link

Fix an error that occurs in the nested module #35

Closed sinsoku closed 1 month ago

sinsoku commented 1 month ago

Specifying the Ruby file containing the nested module will cause an error of unhandled exception. When this error occurs, arg in RubyMixin#rbs becomes Prism::ConstantPathNode.

To support this node, change to use ConstantUtil#type_name.

fixes #27