Skip to content

Fix loss of LOC during AST0 translation#8350

Open
fhammerschmidt wants to merge 3 commits intorescript-lang:masterfrom
fhammerschmidt:fix-missing-locations-through-ast0-conversion
Open

Fix loss of LOC during AST0 translation#8350
fhammerschmidt wants to merge 3 commits intorescript-lang:masterfrom
fhammerschmidt:fix-missing-locations-through-ast0-conversion

Conversation

@fhammerschmidt
Copy link
Copy Markdown
Member

@fhammerschmidt fhammerschmidt commented Apr 17, 2026

This was a bug that I encountered very often which was I think due to using rescript-schema/Sury's ppx. Sometimes the correct LOC were not reported, instead I got 0, 0.

Introduced a new internal compiler flag to be able to test it better as well.

Copy link
Copy Markdown
Member

@zth zth left a comment

Choose a reason for hiding this comment

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

Amazing!

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.

2 participants