Skip to content
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
@GuillaumeGomez

Description

@GuillaumeGomez

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions