Skip to content

Track AST node between passes #30

@Boshen

Description

@Boshen

In Rolldown, ast node information needs to be tracked across scans and transforms.

It's currently using spans to track the nodes, but once transformation is in, newly inserted statements does not have a SPAN so information is lost, and Rolldown will not function anymore :-(


From hyf: how to identity the same ast node in different visit passes

There's workaround for rolldown to use faked span that out of orignal text's length.
But this require oxc could handle span that is out of original source's length

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