File tree 2 files changed +9
-1
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ trait ClassLikeSupport:
525
525
experimental : Option [Annotation ] = None
526
526
) = Member (
527
527
name = symbol.normalizedName,
528
- fullName = if symbol.fullName endsWith " $ " then symbol.fullName.dropRight( 1 ) else symbol.fullName ,
528
+ fullName = symbol.normalizedFullName ,
529
529
dri = symbol.dri,
530
530
kind = kind,
531
531
visibility = symbol.getVisibility(),
Original file line number Diff line number Diff line change @@ -17,6 +17,14 @@ object NameNormalizer {
17
17
val escaped = escapedName(constructorNormalizedName)
18
18
escaped
19
19
}
20
+
21
+ def normalizedFullName : String = {
22
+ import reflect .*
23
+ val fullName = s.fullName
24
+ val withoutObjectSuffix = if s.flags.is(Flags .Module ) then fullName.stripSuffix(" $" ) else fullName
25
+ val escaped = escapedName(withoutObjectSuffix)
26
+ escaped
27
+ }
20
28
21
29
private val ignoredKeywords : Set [String ] = Set (" this" )
22
30
You can’t perform that action at this time.
0 commit comments