mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[IDE] Preparations for removal of getName on ValueDecl
With the introduction of special decl names, `Identifier getName()` on `ValueDecl` will be removed and pushed down to nominal declarations whose name is guaranteed not to be special. Prepare for this by calling to `DeclBaseName getBaseName()` instead where appropriate.
This commit is contained in:
@@ -480,8 +480,8 @@ void swift::ide::printSubmoduleInterface(
|
||||
auto *RHSValue = dyn_cast<ValueDecl>(RHS);
|
||||
|
||||
if (LHSValue && RHSValue) {
|
||||
StringRef LHSName = LHSValue->getName().str();
|
||||
StringRef RHSName = RHSValue->getName().str();
|
||||
auto LHSName = LHSValue->getBaseName();
|
||||
auto RHSName = RHSValue->getBaseName();
|
||||
if (int Ret = LHSName.compare(RHSName))
|
||||
return Ret < 0;
|
||||
// FIXME: this is not sufficient to establish a total order for overloaded
|
||||
|
||||
Reference in New Issue
Block a user