glayzzle / glayzzle/php-parser
[bug] incorrect start location in many nodes
Open
AST
bug
investigating
minor
- Dominant language
- JavaScript
- Stars
- 565
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
Input:
```
while (true) // Comment
{
};
```
Currently `while` node starts with `test` node location, but should be start with `while` keyword. Same for other control structures. It would be great if you show how to fix such things (send a PR with fix) and i will start fix it self and send new PRs. This would speed up problem solving.
Contributor guide
Assessment
This issue has not been assessed yet.