[AST] Remove `ModuleDecl::addFile` #77666
hamishknight
force pushed
from
4924074c
to
7cadaf9e
235 days ago
hamishknight
force pushed
from
7cadaf9e
to
67ba1337
235 days ago
hamishknight
changed the title [DNM] [AST] Remove `ModuleDecl::addFile` [AST] Remove `ModuleDecl::addFile` 235 days ago
Factor out ModuleDecl overload of import resolution
e2ba36f7
[IDE] Avoid relying on after-the-fact use of `addFile`
309c0241
[AST] Remove `ModuleDecl::addFile`
4946c799
hamishknight
force pushed
from
67ba1337
to
4946c799
234 days ago
hamishknight
marked this pull request as ready for review 234 days ago
rintaro
approved these changes
on 2024-11-21
hamishknight
deleted the lets-try-this-again branch 230 days ago
Assignees
No one assigned
Rather than exposing an
addFile
member on ModuleDecl, have thecreate
members take a lambda that populates the files for the module. Once module construction has finished, the files are immutable.