Skip to content

Commit 4791af0

Browse files
authored
Merge pull request swiftlang#27602 from jrose-apple/omit-needle-swords
omitNeedlessWords: Several clarifying improvements to type name matching
2 parents b521871 + 86de8b8 commit 4791af0

File tree

2 files changed

+216
-180
lines changed

2 files changed

+216
-180
lines changed

include/swift/Basic/StringExtras.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -315,29 +315,6 @@ namespace swift {
315315
size_t findWord(StringRef string, StringRef word);
316316
} // end namespace camel_case
317317

318-
/// Describes the role that a particular name has within a
319-
/// signature, which can affect how we omit needless words.
320-
enum class NameRole {
321-
/// The base name of a function or method.
322-
BaseName,
323-
324-
/// The base name of a method where the omission type name is the
325-
/// 'self' type.
326-
BaseNameSelf,
327-
328-
/// The first parameter of a function or method.
329-
FirstParameter,
330-
331-
// Subsequent parameters in a function or method.
332-
SubsequentParameter,
333-
334-
// The name of a property.
335-
Property,
336-
337-
// A partial name; used internally.
338-
Partial,
339-
};
340-
341318
/// Flags used by \c OmissionTypeName to describe the input type.
342319
enum class OmissionTypeFlags {
343320
/// Whether the parameter with this type has a default argument.

0 commit comments

Comments
 (0)