-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more principled generic printer #533
base: main
Are you sure you want to change the base?
Conversation
26b440d
to
ae92eb4
Compare
ae92eb4
to
53b10c1
Compare
53b10c1
to
0759a76
Compare
I updated this PR in a way the current generic printer and the new one cohabit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get some documentation in before we merge this.
cli/driver/src/exporter.rs
Outdated
)) | ||
}) | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As usual, some comments on what the new code is doing would be nice.
@@ -0,0 +1,92 @@ | |||
open! Prelude |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the name is the best ....
But aside from that, we need a design of this. Please add a design document (markdown, mermaind, whatever) that describes how this printer works and how it can be used.
And then document the code (with how it's implementing the design).
engine/profile.dump
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
d4c61fa
to
c10e43f
Compare
Exploring more principled/clean generic printer after chatting about the PV backend in Paris with Jonas.
Porting the PV printer should be easy, but that's a bit out of scope, I'm trying to play with the generic printer to converge to something nicer.
This generic printer supports fully source maps v3: any backend using the genric printer gets that for free.
The result is something like that or the fact a user can click in VSCode in some region of the extracted code and be directed to the Rust source.
Fixes #404