prism
prism copied to clipboard
A superclass/module/interface/flag for static literals
Extracted from #1296 item 1.
It would be nice to have a LiteralNode superclass or included module in those, and that would guarantee a value method which returns the literal value.
Related: YP_NODE_FLAG_STATIC_LITERAL from #1451 and https://github.com/ruby/yarp/pull/1290.
For this one we already have a flag internally but we don't expose it. I'd like to expose it going forward