[NFC] Adopt new ImportPath types and terminology

# Conflicts:
#	lib/IDE/CodeCompletion.cpp
This commit is contained in:
Brent Royal-Gordon
2020-09-10 19:05:40 -07:00
parent 1ed3caece6
commit cff4ddf13a
52 changed files with 375 additions and 361 deletions

View File

@@ -62,7 +62,7 @@ void SourceLoader::collectVisibleTopLevelModuleNames(
// TODO: Implement?
}
bool SourceLoader::canImportModule(Located<Identifier> ID) {
bool SourceLoader::canImportModule(ImportPath::Element ID) {
// Search the memory buffers to see if we can find this file on disk.
FileOrError inputFileOrError = findModule(Ctx, ID.Item.str(),
ID.Loc);
@@ -79,7 +79,7 @@ bool SourceLoader::canImportModule(Located<Identifier> ID) {
}
ModuleDecl *SourceLoader::loadModule(SourceLoc importLoc,
ArrayRef<Located<Identifier>> path) {
ImportPath::Module path) {
// FIXME: Swift submodules?
if (path.size() > 1)
return nullptr;