Add a selectTokensOfTypes class which allows multiple token types to be extracted from an AASTNode.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rPHU5b9e5b3c105a: Add a `selectTokensOfTypes` method to the `AASTNode` class
This will make more sense in my next diff.
Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
src/parser/aast/api/AASTNode.php | ||
---|---|---|
145 | Avoid array_merge() in a loop. Probably easiest here to just iterate over the results explicitly rather than trying to array_mergev() later on. https://secure.phabricator.com/book/phabflavor/article/php_pitfalls/#array-merge-in-incredibl |