grom358 / pharborist

A PHP library to query and transform source code via tree operations.
GNU General Public License v3.0
44 stars 10 forks source link

Add ObjectPropertyNode::getRootObject() #191

Open phenaproxima opened 10 years ago

phenaproxima commented 10 years ago

ArrayLookupNode has getRootArray(), but there is nothing similar for ObjectPropertyNode. This should be rectified. I also think that both methods should be renamed to getLookupRoot() for consistency.

Self-assigning.