File tree 2 files changed +21
-19
lines changed
2 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -315,25 +315,6 @@ namespace swift {
315
315
size_t findWord (StringRef string, StringRef word);
316
316
} // end namespace camel_case
317
317
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 first parameter of a function or method.
325
- FirstParameter,
326
-
327
- // Subsequent parameters in a function or method.
328
- SubsequentParameter,
329
-
330
- // The name of a property.
331
- Property,
332
-
333
- // A partial name; used internally.
334
- Partial,
335
- };
336
-
337
318
// / Flags used by \c OmissionTypeName to describe the input type.
338
319
enum class OmissionTypeFlags {
339
320
// / Whether the parameter with this type has a default argument.
Original file line number Diff line number Diff line change @@ -576,6 +576,27 @@ static bool textMatchesPropertyName(StringRef text,
576
576
return false ;
577
577
}
578
578
579
+ namespace {
580
+ // / Describes the role that a particular name has within a
581
+ // / signature, which can affect how we omit needless words.
582
+ enum class NameRole {
583
+ // / The base name of a function or method.
584
+ BaseName,
585
+
586
+ // / The first parameter of a function or method.
587
+ FirstParameter,
588
+
589
+ // Subsequent parameters in a function or method.
590
+ SubsequentParameter,
591
+
592
+ // The name of a property.
593
+ Property,
594
+
595
+ // A partial name; used internally.
596
+ Partial,
597
+ };
598
+ } // end anonymous namespace
599
+
579
600
static StringRef omitNeedlessWords (StringRef name,
580
601
OmissionTypeName typeName,
581
602
NameRole role,
You can’t perform that action at this time.
0 commit comments