mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Compare the package names of the accessing module and the decl's defining module.
Update tests.
This commit is contained in:
@@ -480,8 +480,8 @@ public:
|
||||
return Identifier();
|
||||
}
|
||||
|
||||
bool inPackage(std::string packageName) {
|
||||
return !getPackageName().empty() && getPackageName().str() == packageName;
|
||||
bool inSamePackage(ModuleDecl *other) {
|
||||
return !getPackageName().empty() && getPackageName() == other->getPackageName();
|
||||
}
|
||||
|
||||
/// Get the package associated with this module
|
||||
|
||||
Reference in New Issue
Block a user