php-parser
php-parser copied to clipboard
:herb: NodeJS PHP Parser - extract AST or tokens
can't find how to tarvers the ast tree
@czosel I had an idea the other day. A decent number of the bug reports on this project are due to small correctness issues. So I thought, is there a...
Improve the coverage with mocha : - [ ] 100% of lines of code - [ ] 100% of statements - [ ] > 95% of branches
implement a visitor helper in order to handle AST transversal : ```js const ast = parser.parse('...some code...'); // visiting child nodes : ast.visit(function(node) { // do something }); // filtering...
Hi, I am trying to parse a file with a file level comment. This parse works fine when not using a namespace. However, with namespace the leadingComments node is missing...
Input: ```php try { call(); } catch (| Exception $e) { do_something(); } ``` Affected all nodes use `this.read_list` api
- Refactor code using `read_*` for better maintenance - Fix parsing: ```php class MyClass1 { use HelloWorld { sayHello as abstract private test; } } ``` It is invalid and...
Seems like when inline comments are parsed they include the line break - both in the `comment.value` and the `comment.loc.end` 
Need fix it, not high priority