Skip to content

File visit order API #168

@miniBill

Description

@miniBill

Have an API to either:

  • pre-visit some files
  • communicate dependencies (please visit X before Y)
  • fix a visit order

Usecase:
elm-review-codegen-simplify needs the list of functions in all the Gen.* modules before being able to generate errors for the non-Gen.* modules.

With the current implementation defined order, I need to generate all the errors in the final project evaluation, whereas if I could be sure that I've visited all then Gen.* modules before visiting all the non-Gen.* ones then I could use the normal workflow of generating errors from the module visitor.

In particular, I need to also visit modules that are not included, so "the modules are visited from the leaves to the root" would not be enough for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions