javaparser / javaparser/javaparser

Store character (or byte) offset next to line and column in Position

Open
#2,272 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.