Closed
Description
It probably out of scope of PHPStan (for now), but as we talked, it would be great if this package allowed format preserving print.
I already asked nikic how to do it, he explained me the basics. Basically, AbstractNode
class with set/get attributes is the first step towards it: nikic/PHP-Parser@4d2a4d0#diff-ee2208021c6e96ff1de44281aa029630R108
After few weeks I managed to make working prototype, but it contains lot of boiler plate code and external storage of tokens positions etc., to make it work.
Having this would also make it easy to configure FQN namespaces, the same way php-parser does, without modifing the output. And other SOLID features :)
Metadata
Metadata
Assignees
Labels
No labels