Skip to content

Share use normalisation code between ordering and formatting #2531

Closed
@nrc

Description

@nrc

In order to accurately re-order, we need to apply a lot of the normalisation transfomations. This is a waste since we then throw them all away (worse we do it on every compare, not just once for the whole search). We should instead do the conversion to our own data types earlier, sort then output the re-ordered (and normalised) imports. I think that means we need to include either span info or comments and newlines and visibility with our representation of use paths.

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