Module cl_typeck::use_importer

source ·
Expand description

WIP use-item importer. This performs eager import resolution on the AST

§TODOs:

  • Resolve imports using a graph traversal rather than linear iteration
  • Separate imported items from natively declared items
  • Separate the use-import pass from the project
  • Report errors in a meaningful way
  • Lazy import resolution using graph-edge traversal during name lookup?
    • It doesn’t seem to me like the imports in a given scope can change.