We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3eedca commit 859450eCopy full SHA for 859450e
lib/rbs/ast/ruby/helpers/constant_helper.rb
@@ -15,6 +15,10 @@ def constant_as_type_name(node)
15
rescue Prism::ConstantPathNode::DynamicPartsInConstantPathError
16
nil
17
end
18
+ when Prism::ConstantWriteNode
19
+ TypeName.new(name: node.name, namespace: Namespace.empty)
20
+ when Prism::ConstantPathWriteNode
21
+ constant_as_type_name(node.target)
22
23
24
0 commit comments