instance method
Prism::ConstantPathTargetNode#child
child
lib/prism/node_ext.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/node_ext.rb, line 246
def child
deprecated("name", "name_loc")
if name
ConstantReadNode.new(source, -1, name_loc, 0, name)
else
MissingNode.new(source, -1, location, 0)
end
end
Previously, we had a child node on this class that contained either a constant read or a missing node. To not cause a breaking change, we continue to supply that API.