javaparser / javaparser/javaparser
Store character (or byte) offset next to line and column in Position
Open
Nobody has claimed this yet.
Improvement
- Dominant language
- Java
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 17h 36m
- Merged PRs (30d)
- 28
Description
Having the offset in a Position would allow us to locate a node in the source file. This would be helpful for the case described in #2270.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading Position and tracing how source locations are stored on nodes, then review issue #2270 for the motivating case. Decide whether the offset is measured in characters or bytes and identify the affected parser and location tests. Done means Position exposes the offset and node locations remain correct for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100