@@ -160,7 +160,7 @@ namespace ide {
160160// / While the names of Foundation types aren't likely to change in
161161// / Objective-C, their mapping into Swift can. Therefore, when
162162// / referring to names of Foundation entities in Swift, use this enum
163- // / and \c ASTContext ::getSwiftName or \c ASTContext::getSwiftId.
163+ // / and \c swift ::getSwiftName or \c ASTContext::getSwiftId.
164164enum class KnownFoundationEntity {
165165#define FOUNDATION_ENTITY (Name ) Name,
166166#include " swift/AST/KnownFoundationEntities.def"
@@ -170,6 +170,10 @@ enum class KnownFoundationEntity {
170170// / entity name.
171171Optional<KnownFoundationEntity> getKnownFoundationEntity (StringRef name);
172172
173+ // / Retrieve the Swift name for the given Foundation entity, where
174+ // / "NS" prefix stripping will apply under omit-needless-words.
175+ StringRef getSwiftName (KnownFoundationEntity kind);
176+
173177// / Introduces a new constraint checker arena, whose lifetime is
174178// / tied to the lifetime of this RAII object.
175179class ConstraintCheckerArenaRAII {
@@ -1344,14 +1348,10 @@ class ASTContext final {
13441348 // / Returns memory used exclusively by constraint solver.
13451349 size_t getSolverMemory () const ;
13461350
1347- // / Retrieve the Swift name for the given Foundation entity, where
1348- // / "NS" prefix stripping will apply under omit-needless-words.
1349- StringRef getSwiftName (KnownFoundationEntity kind);
1350-
13511351 // / Retrieve the Swift identifier for the given Foundation entity, where
13521352 // / "NS" prefix stripping will apply under omit-needless-words.
13531353 Identifier getSwiftId (KnownFoundationEntity kind) {
1354- return getIdentifier (getSwiftName (kind));
1354+ return getIdentifier (swift:: getSwiftName (kind));
13551355 }
13561356
13571357 // / Populate \p names with visible top level module names.
0 commit comments