Closed tompng closed 1 week ago
Hey @tompng — I definitely get what you're saying here. I've been thinking about it since you reported it, but I think I'm going to keep it as it is for now. A lot of people are depending on the API now, and adding this would be a big enough amount of churn that it would have to be fully worth it, and I think this is marginally worth it, but not enough. Thank you for understanding!
For
class A; end
,ClassNode#constant_path
isConstantReadNode
but it is different from normal constant read.Perhaps renaming ConstantReadNode to ConstantNode might be consistent? Just like ConstantPathNode is read (
x=A::B
) or write target (A::B=x
) depend on where the node appears.I'm not having problem, reported just in case.