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

ObjectMethodCallNode::getPreviousCall() #159

Closed phenaproxima closed 10 years ago

phenaproxima commented 10 years ago

Implements #95. If an ObjectMethodCallNode's object property is a CallNode, that CallNode is returned. This allows user code traverse up a set of chained method calls, starting from anywhere in the chain. If the object isn't a CallNode, returns NULL.