Skip to content

Commit 8cf16e3

Browse files
committed
chore: effectively use tasty-inspector in scaladoc
This partially reverts scala#21929's fix but keeps the tests that were introduced
1 parent f8a521f commit 8cf16e3

File tree

4 files changed

+2
-203
lines changed

4 files changed

+2
-203
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package tasty
55
import java.util.regex.Pattern
66

77
import scala.util.{Try, Success, Failure}
8-
import scala.tasty.inspector.{ScaladocInternalTastyInspector, Inspector, Tasty}
8+
import scala.tasty.inspector.{TastyInspector, Inspector, Tasty}
99
import scala.quoted._
1010

1111
import dotty.tools.dotc
@@ -160,7 +160,7 @@ object ScaladocTastyInspector:
160160
report.error("File extension is not `tasty` or `jar`: " + invalidPath)
161161

162162
if tastyPaths.nonEmpty then
163-
ScaladocInternalTastyInspector.inspectAllTastyFilesInContext(tastyPaths, jarPaths, classpath)(inspector)(using ctx.compilerContext)
163+
TastyInspector.inspectAllTastyFiles(tastyPaths, jarPaths, classpath)(inspector)
164164

165165
val all = inspector.topLevels.result()
166166
all.groupBy(_._1).map { case (pckName, members) =>

scaladoc/src/scala/tasty/inspector/Inspector.scala

Lines changed: 0 additions & 33 deletions
This file was deleted.

scaladoc/src/scala/tasty/inspector/Tasty.scala

Lines changed: 0 additions & 20 deletions
This file was deleted.

scaladoc/src/scala/tasty/inspector/TastyInspector.scala

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)