Nikita Popov

Results 517 comments of Nikita Popov

There is no reference table, though if someone wants to create one, that would be great. Generally my recommended approach would be to parse + dump the code you're interested...

@carusogabriel Yeah, something like that. Maybe could also list the subnodes?

These grammar productions are shared between array literals (which don't allow empty elements) and array destructuring (which does), so it's not possible to just modify the grammar here. Instead I...

As this is a separate node, you can already control this by passing in either `Array` or `List` as the node type. I don't see a need for a pretty-printer...

This is the current representation though: ``` bin/php-parse '

> @nikic for example if `shortArraySyntax` is false, then `

With https://github.com/nikic/PHP-Parser/commit/68fc1ba4cb7b0aef9decc4e9d8f3b61eecdd3883 `List` is always used to represent destructuring and rendering is decided by `kind` attribute. The default is determined by `phpVersion`. I think that should address this use-case?

As I have already explained, I have no interest in supporting a separate option for this. You can already use phpVersion to control the default behavior, and flags on individual...

I guess we'll see how it goes, but I do plan to continue maintaining this project.

Library is still maintained, so I'll go ahead and close this.