File tree 2 files changed +13
-1
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ trait ClassLikeSupport:
529
529
experimental : Option [Annotation ] = None
530
530
) = Member (
531
531
name = symbol.normalizedName,
532
- fullName = symbol.fullName ,
532
+ fullName = symbol.normalizedFullName ,
533
533
dri = symbol.dri,
534
534
kind = kind,
535
535
visibility = symbol.getVisibility(),
Original file line number Diff line number Diff line change @@ -17,6 +17,18 @@ object NameNormalizer {
17
17
val escaped = escapedName(constructorNormalizedName)
18
18
escaped
19
19
}
20
+
21
+ def ownerNameChain : List [String ] = {
22
+ import reflect .*
23
+ if s.isNoSymbol then List .empty
24
+ else if s == defn.EmptyPackageClass then List .empty
25
+ else if s == defn.RootPackage then List .empty
26
+ else if s == defn.RootClass then List .empty
27
+ else s.owner.ownerNameChain :+ s.normalizedName
28
+ }
29
+
30
+ def normalizedFullName : String =
31
+ s.ownerNameChain.mkString(" ." )
20
32
21
33
private val ignoredKeywords : Set [String ] = Set (" this" )
22
34
You can’t perform that action at this time.
0 commit comments