mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SR-11889: Using Located<T> instead of std::pair<SourceLoc, T>
This commit is contained in:
@@ -41,7 +41,7 @@ using namespace swift;
|
||||
using namespace ide;
|
||||
|
||||
static ModuleDecl *getModuleByFullName(ASTContext &Ctx, StringRef ModuleName) {
|
||||
SmallVector<std::pair<Identifier, SourceLoc>, 4>
|
||||
SmallVector<Located<Identifier>, 4>
|
||||
AccessPath;
|
||||
while (!ModuleName.empty()) {
|
||||
StringRef SubModuleName;
|
||||
@@ -52,7 +52,7 @@ static ModuleDecl *getModuleByFullName(ASTContext &Ctx, StringRef ModuleName) {
|
||||
}
|
||||
|
||||
static ModuleDecl *getModuleByFullName(ASTContext &Ctx, Identifier ModuleName) {
|
||||
return Ctx.getModule(std::make_pair(ModuleName, SourceLoc()));
|
||||
return Ctx.getModule({{ModuleName, SourceLoc()}});
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user