glayzzle / glayzzle/php-parser

[bug] incorrect start location in many nodes

Open
#208 9 comments 2 reactions 1 assignee Claimed by @alexander-akait View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.