php-parser icon indicating copy to clipboard operation
php-parser copied to clipboard

:herb: NodeJS PHP Parser - extract AST or tokens

Results 62 php-parser issues
Sort by recently updated
recently updated
newest added

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

enhancement
help wanted
good first issue

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...

help wanted
feature
AST
good first issue

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

bug
AST

- 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` ![image](https://user-images.githubusercontent.com/13454680/39325050-379a15ae-495f-11e8-85f1-dc35f8ca45af.png)

enhancement
question
good first issue
minor

Need fix it, not high priority

enhancement
minor