-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where can I get the reference table of the node type? #501
Comments
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 in to see what nodes are used. Alternatively, if you want to familiarize yourself with all nodes types, go through the file names on https://github.com/nikic/PHP-Parser/tree/master/lib/PhpParser/Node. |
@carusogabriel Yeah, something like that. Maybe could also list the subnodes? |
FYI, I'm working on this in @rectorphp, so people can learn more effectively |
Here is the table: https://github.com/rectorphp/rector/blob/master/docs/NodesOverview.md I thought about adding example of construction + kind alternatives (e.g. for I plan to add it to https://getrector.org static website, so we can filter them with JavaScript |
Is there an updated version somewhere? The link appears to be dead. |
Yes, here it is :) |
This maybe a stupid question, but I read all the documents about this project still cannot find a full referrence table.
Currently I only know that 'Stmt' stands for 'statement' and 'Expr' means 'expression'.
The text was updated successfully, but these errors were encountered: