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 a method to convert a CommaListNode to ArrayNode #135

Closed phenaproxima closed 10 years ago

phenaproxima commented 10 years ago

Given a CommaList node which renders to:

'foo', 'baz', 30

I should be able to do this:

// Returns ArrayNode which renders as ['foo', 'baz', 30]
$list->toArrayNode()
phenaproxima commented 10 years ago

Now that #128 is done, I can probably handle this one myself.