Skip to content

Commit 01dcb59

Browse files
committed
Scala3doc: remove outdated extension name handling
1 parent 02aedfa commit 01dcb59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scala3doc/src/dotty/dokka/tasty/NameNormalizer.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ trait NameNormalizer { self: TastyParser =>
66
import qctx.reflect._
77
extension (s: Symbol) def normalizedName: String = {
88
val withoutGivenPrefix = if s.isGiven then s.name.stripPrefix("given_") else s.name
9-
val withoutExtensionPrefix = if s.isExtensionMethod then withoutGivenPrefix.stripPrefix("extension_") else withoutGivenPrefix
10-
val withoutObjectSuffix = if s.flags.is(Flags.Object) then withoutExtensionPrefix.stripSuffix("$") else withoutExtensionPrefix
9+
val withoutObjectSuffix = if s.flags.is(Flags.Object) then withoutGivenPrefix.stripSuffix("$") else withoutGivenPrefix
1110
val constructorNormalizedName = if s.isClassConstructor then "this" else withoutObjectSuffix
1211
constructorNormalizedName
1312
}

0 commit comments

Comments
 (0)