Skip to content

feat: add TrackingLineParser for source-line-accurate event attribution#77

Open
JacobHearst wants to merge 1 commit into
ldomaradzki:masterfrom
JacobHearst:master
Open

feat: add TrackingLineParser for source-line-accurate event attribution#77
JacobHearst wants to merge 1 commit into
ldomaradzki:masterfrom
JacobHearst:master

Conversation

@JacobHearst

Copy link
Copy Markdown
Contributor

Closes #75

LineParser's look-ahead buffering and internal event queue decouple events from the input lines that produced them. TrackingLineParser wraps LineParser and maintains a FIFO queue of pending line numbers, using a pendingEventCount hook on LineParser to compute exact attribution for all edge cases (buffered look-ahead, comment-continuation merges, fatalError double-event path).

LineParser's look-ahead buffering and internal event queue decouple events
from the input lines that produced them. TrackingLineParser wraps LineParser
and maintains a FIFO queue of pending line numbers, using a pendingEventCount
hook on LineParser to compute exact attribution for all edge cases (buffered
look-ahead, comment-continuation merges, fatalError double-event path).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature proposal] TrackingLineParser: Track line numbers of parse events

1 participant