mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Adopt new ImportPath types and terminology
# Conflicts: # lib/IDE/CodeCompletion.cpp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user