Skip to content

Conversation

@synga-nl
Copy link

Sometimes I want to quickly develop something without the need of ceating a visitor class. I created this class and I think more people want to use this.

…ating a visitor class. I created this class and I think more people want to use this.
@nikic
Copy link
Owner

nikic commented Oct 18, 2017

What is the motivation for using this over an anonymous class?

@TomasVotruba
Copy link
Contributor

TomasVotruba commented Oct 22, 2017

@nikic
Copy link
Owner

nikic commented May 13, 2018

I'm closing this, as a) you can already use an anonymous class with about the same amount of effort (First code in https://github.com/nikic/PHP-Parser/blob/master/doc/component/Walking_the_AST.markdown) and b) the specific case of finding nodes is handled by NodeFinder (https://github.com/nikic/PHP-Parser/blob/master/doc/component/Walking_the_AST.markdown#simple-node-finding).

@nikic nikic closed this May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants