File tree 2 files changed +10
-2
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty 2 files changed +10
-2
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 @@ -14,7 +14,15 @@ object NameNormalizer {
14
14
import reflect .*
15
15
val withoutObjectSuffix = if s.flags.is(Flags .Module ) then s.name.stripSuffix(" $" ) else s.name
16
16
val constructorNormalizedName = if s.isClassConstructor then " this" else withoutObjectSuffix
17
- val escaped = escapedName(constructorNormalizedName)
17
+ val escaped = escapedName(withoutObjectSuffix)
18
+ escaped
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)
18
26
escaped
19
27
}
20
28
You can’t perform that action at this time.
0 commit comments