Skip to content

Store file content inside the SourceMap struct#368

Merged
LesterEvSe merged 1 commit into
BlockstreamResearch:masterfrom
LesterEvSe:feat/source-map-with-content
Jul 3, 2026
Merged

Store file content inside the SourceMap struct#368
LesterEvSe merged 1 commit into
BlockstreamResearch:masterfrom
LesterEvSe:feat/source-map-with-content

Conversation

@LesterEvSe

Copy link
Copy Markdown
Collaborator

Follow the same approach as Rust's SourceMap (source code): the map should own the source bytes of every file it tracks, not just their paths.

Storing content indexed by file_id lets a future Diagnostic retrieve the specific lines where errors occurred using ariadne render

@LesterEvSe LesterEvSe requested a review from KyrylR July 3, 2026 12:10
@LesterEvSe LesterEvSe self-assigned this Jul 3, 2026
@LesterEvSe LesterEvSe requested a review from delta1 as a code owner July 3, 2026 12:10
@LesterEvSe LesterEvSe added the enhancement New feature or request label Jul 3, 2026
@LesterEvSe LesterEvSe force-pushed the feat/source-map-with-content branch from 5e21958 to 8a806c0 Compare July 3, 2026 12:17
Comment thread src/driver/mod.rs

@KyrylR KyrylR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 8a806c0 with comments; successfully ran local tests, code review

@LesterEvSe LesterEvSe merged commit 8f2568e into BlockstreamResearch:master Jul 3, 2026
12 checks passed
@LesterEvSe LesterEvSe deleted the feat/source-map-with-content branch July 7, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants