Skip to content

Commit

Permalink
Switch most of ImportRefResolver to non-member functions (carbon-la…
Browse files Browse the repository at this point in the history
…nguage#4584)

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 and bricknerb committed Nov 28, 2024
1 parent 4767d5b commit 7b2f1b9
Showing 1 changed file with 2,079 additions and 1,766 deletions.
Loading

0 comments on commit 7b2f1b9

Please sign in to comment.