Skip to content

Commit

Permalink
Switch most of ImportRefResolver to non-member functions (#4584)
Browse files Browse the repository at this point in the history
In preparation for further refactoring, switch away from member
functions for most of `ImportRefResolver`.

Split `ImportRefResolver` into a context class that exposes the value
stores for the source and destination files, and a derived class that
maintains a worklist. The idea is to statically enforce that functions
that take `ImportContext` cannot accidentally add new work, because they
don't have access to the work queue.
  • Loading branch information
zygoloid authored Nov 26, 2024
1 parent ed80cd2 commit c0faa81
Showing 1 changed file with 2,079 additions and 1,766 deletions.
Loading

0 comments on commit c0faa81

Please sign in to comment.