Skip to content

Commit ae947cb

Browse files
committed
[Debugger] 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.
1 parent 882d8c4 commit ae947cb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/swift/AST/DebuggerClient.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ class DebuggerClient {
4848
/// be consulted first. Return true if results have been added
4949
/// to RV.
5050
/// FIXME: I don't think this ever does anything useful.
51-
virtual bool lookupOverrides(Identifier Name, DeclContext *DC,
51+
virtual bool lookupOverrides(DeclBaseName Name, DeclContext *DC,
5252
SourceLoc Loc, bool IsTypeLookup,
5353
ResultVector &RV) = 0;
54-
54+
5555
/// This is the second time DebuggerClient is consulted:
5656
/// after all names in external Modules are checked, the client
5757
/// gets a chance to add names to the list of candidates that
58-
/// have been found in the external module lookup.
58+
/// have been found in the external module lookup.
5959

60-
virtual bool lookupAdditions(Identifier Name, DeclContext *DC,
60+
virtual bool lookupAdditions(DeclBaseName Name, DeclContext *DC,
6161
SourceLoc Loc, bool IsTypeLookup,
6262
ResultVector &RV) = 0;
6363

tools/swift-ide-test/swift-ide-test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ class NullDebuggerClient : public DebuggerClient {
108108
return false;
109109
}
110110
void didGlobalize(Decl *D) override {}
111-
bool lookupOverrides(Identifier Name, DeclContext *DC,
111+
bool lookupOverrides(DeclBaseName Name, DeclContext *DC,
112112
SourceLoc Loc, bool IsTypeLookup,
113113
ResultVector &RV) override {
114114
return false;
115115
}
116116

117-
bool lookupAdditions(Identifier Name, DeclContext *DC,
117+
bool lookupAdditions(DeclBaseName Name, DeclContext *DC,
118118
SourceLoc Loc, bool IsTypeLookup,
119119
ResultVector &RV) override {
120120
return false;

0 commit comments

Comments
 (0)