This repository was archived by the owner on Mar 11, 2025. It is now read-only.
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Keep the template source code portion corresponding to each AST token #926
Open
Description
In a lot of cases, we emit errors when generating the Rust code in the proc-macro, however we only emit an error without showing where it comes from in the template.
To improve this situation, we could keep a Option<&str>
or at least a Option<Range>
(which would point to the template source, however this second solution brings its own issues, like when the error comes from imports/extends).
What do you think?
Metadata
Metadata
Assignees
Labels
No labels